ID-10-T question

The Rev

Registered User.
Local time
Today, 07:26
Joined
Jan 15, 2003
Messages
119
Can I run a delete query from the switchboard? I get "there was an error executing the command"
 
On the event of your choice:

docmd.hourglass true
docmd.setwarnings false
docmd.openquery "YouQuery'sName"
docmd.setwarnings true
docmd.hourglass false

The query must be an action query.
 
Yes, you can run a delete query from just about anywhere. Try running it from the database window. It should give you a better description of the error.
 
My macro runs fine from the macro screen, but that rascal switchboard won't run it. What command number should I be using in the switchboard items table. I tried 1,2,3,and 4.
 
I believe 7 is the default value to run a macro, if you look at the code behind the Switchboard the item should be listed
 
Oh yeah, not directly, you must run the query from code or a macro. Did you get your other issue resolved? I didn't see any follow-up on that.
 
I wrote a macro and ran it from my switchboard. Thanks all!!!
 

Users who are viewing this thread

Back
Top Bottom