Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

deleting 2

Status
Not open for further replies.

EscapeUK

Programmer
Jul 7, 2000
438
GB
How do I in code

delete a query called qry1
delete another query called qry2
delete yet another query called qry3

However is is possible that they might not exist.

so what i need to do is search for the qry if it exists delete it if not do nothing

ta
 
Check out this FAQ to see if an object exists:

faq181-36

to delete an object, use

DoCmd.DeleteObject acQuery, "queryname" Mike Rohde
rohdem@marshallengines.com
 
Thanks Rohdem--you may have answered a question I just posted above.

Jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top