Submit Button (1 Viewer)

Zholt

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

Thanks Zac
 

Kiwiman

Registered User
Local time
Today, 12:51
Joined
Apr 27, 2008
Messages
799
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.
 

missinglinq

AWF VIP
Local time
Today, 07:51
Joined
Jun 20, 2003
Messages
6,420
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.
 

Zholt

Registered User.
Local time
Today, 04:51
Joined
May 6, 2009
Messages
19
Somebody told me that you cannot run multiple queries also i an a total n00b with code
 

Zholt

Registered User.
Local time
Today, 04:51
Joined
May 6, 2009
Messages
19
Missing, where do i put the do events in the macro fields?
 

Zholt

Registered User.
Local time
Today, 04:51
Joined
May 6, 2009
Messages
19
Please could you reply this needs to be completed by tomorrow

Thanks Zac
 

Users who are viewing this thread

Top Bottom