Guest_imported
New member
- Jan 1, 1970
- 0
Hello,
I have defined an sql statement, to automatically create a
querydef called dummy, as below :-
Set qdf = dbs.CreateQueryDef("dummy", strSQL)
This works great the first time, but upon second go, as the object has already been created, I get "object already exists" message.
I have tried to do this earlier in the code
Set qdf = dbs.QueryDefs.Delete("dummy"
which just stops the code working altogether.
Is there another way of deleting, or overwriting the object.
thanks
I have defined an sql statement, to automatically create a
querydef called dummy, as below :-
Set qdf = dbs.CreateQueryDef("dummy", strSQL)
This works great the first time, but upon second go, as the object has already been created, I get "object already exists" message.
I have tried to do this earlier in the code
Set qdf = dbs.QueryDefs.Delete("dummy"
which just stops the code working altogether.
Is there another way of deleting, or overwriting the object.
thanks