View Full Version : Queries..


devolved_one
03-29-2000, 06:45 AM
Is it possible to run a Delete Query from VBA with out it prompting the user to delete the data in the table you are deleting from!?

Thanks.

mikec
03-29-2000, 07:11 AM
Simply turn the warnings off before the query code and then turn them back on after:

DoCmd.SetWarnings False
Query Code
DoCmd.SetWarnings True

iommi
03-30-2000, 08:22 AM
You can also run a dbengine(0)(0).execute("DELETE blabla FROM blabla WHERE etc") etc etc.

This will just delete the record(s) in the recordset in your sql statement above. It does not prompt the user.