I want to launch a VB module in Access 2007 via a marco
I want to launch a VB module in Access 2007 via a marco. the marco would start a VB module and when the module completed its work, the marco would provide a message and execute 2 queries then another VB module. thanks
The problem with your logic is that it assumes that code will complete successfully.
What if it doesn't?
My guess is that if the code fails for some reason, you do not want to then run the queries.
I will also presume that you would like to inform the user of this.
For these reasons I would also recommend using VBA, not Macros for this.
My suggestion?
Create a function that determines if the code ran successfully.
Based on the result of this function, you would either notify the user that the code failed and exit the code (not running the queries)
Or (if the code did run successfully), simply go on to run the queries...
Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.