I have written some sql queries, some sub procedures and have some saved imports.
Now I am trying to use the Macro Design in Access to provide a run button which will run these objects sequentially.
However I dont see any command for running a sun procedure, I can see OpenVisualBasicModule and Runcode.
OpenVisualBaicModule is only opening my sub procedures and Run Code is asking for a function only.
I created a function with all the sub procedure call inside. But thats not working while individually all of them work.
Any suggestion what to do.
RunCodeand having your Function procedure call sub-procedures should work. Place a MsgBox as the first line of your Function to test if it runs at all. Otherwise, post the full code of your function, and the text that you use in the Macro's "Function Name" argument. - Andy G