Hi all,
Basically what i wanted to do was see if a query by a particular name exists and if it does than delete it
heres what i have right now
How would i change it so
.QueryDefs.Delete "Dynamic_Query" would only be executed if it exists or instead just have it overwrite it?
Thanks alot
Basically what i wanted to do was see if a query by a particular name exists and if it does than delete it
heres what i have right now
Code:
With db
.QueryDefs.Delete "Dynamic_Query"
Set qdfNew = .CreateQueryDef("Dynamic_Query", strSQL)
.Close
End With
How would i change it so
.QueryDefs.Delete "Dynamic_Query" would only be executed if it exists or instead just have it overwrite it?
Thanks alot
Last edited: