Submit Button

Zholt

Registered User.
Local time
Today, 02:18
Joined
May 6, 2009
Messages
19
I need to create a button that will run several query's and macros simultainiously.

Thanks Zac
 
Howzit

In design view of your form, add a command buttona and use the wzard to run a macro (under miscellaneous) i think. Select the macro you want to run.

In the selected macro, you can add other commands to run other macros \ queries, or you can add it in code to the generated vb.
 
Just be aware that Access will do just that, run them simultaneously! If any of the queries are dependent on any the preceding queries,for example, you may run into problems, because QueryB will run before QueryA has finished running. This can be usually be worked around by inserting a

DoEvents

command between running each query/macro.
 
Somebody told me that you cannot run multiple queries also i an a total n00b with code
 
Missing, where do i put the do events in the macro fields?
 
Please could you reply this needs to be completed by tomorrow

Thanks Zac
 

Users who are viewing this thread

Back
Top Bottom