Passing Parameters to Macros from VB?

vbjohn

Registered User.
Local time
Today, 07:39
Joined
Mar 22, 2002
Messages
75
How can I run a macro in VB that the macro asks for a parameter. How could I pass along the parameter to the macro?

This is how I am doing it...

With appAccess.DoCmd
.RunMacro "ApHistry"
.RunSQL "UPDATE APHistory SET..... "
.OpenReport "Aphistory", acViewPreview, , strACCond
.Maximize
End With


John
 
I don't know if there's a way to do that. I recommend that you consider converting the macro to VBA code.

Hope this helps,
 
Macros don't ask for parameters; queries do!
 
but you know what i meant. when the macro is ran the query inside the macro is asking for a parameter. How could I pass that parameter for that query?

john-
 

Users who are viewing this thread

Back
Top Bottom