J
Jeff Freilich
Hi All
I am trying to set the SQL of a querydef - I can do so using this
code:
CurrentDb.QueryDefs("EDitQuery").SQL = Me.txtSQL.Value
(Where me.txtSQL contains the sql statement.
What I want to do is set the SQL to nothing so it will clear any SQL
in the underlying querydef - and I can open up a blank query editor.
I have tried the following:
Set SQL to "SELECT" - says SELECT is a reserved word and the syntax is
wrong
Set SQL to "" - does not like that either
Set SQL to Null - using a null value variable
Set SQL to Empty - using an empty variable
Nothing seems to work - any thoughts in pointing me in the right
direction would be great
Thanks,
Jeff
I am trying to set the SQL of a querydef - I can do so using this
code:
CurrentDb.QueryDefs("EDitQuery").SQL = Me.txtSQL.Value
(Where me.txtSQL contains the sql statement.
What I want to do is set the SQL to nothing so it will clear any SQL
in the underlying querydef - and I can open up a blank query editor.
I have tried the following:
Set SQL to "SELECT" - says SELECT is a reserved word and the syntax is
wrong
Set SQL to "" - does not like that either
Set SQL to Null - using a null value variable
Set SQL to Empty - using an empty variable
Nothing seems to work - any thoughts in pointing me in the right
direction would be great
Thanks,
Jeff