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 MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

delete a query

Status
Not open for further replies.

M8KWR

Programmer
Aug 18, 2004
864
GB
is there a way to delete a query in code, i know how to drop a table, but was wondering if there is some code to delete a query

many thanks for any help in advance
 
Alternatively you can use DROP is SQL, even though it is a query you want to drop - you can still use DROP TABLE YourQueryNameHere;

The advantage (I think)of using a DROP SQL statement over the DeleteObject is that you don't have to have the DB open exclusively to run it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top