I have some code I am looking to execute on start up of my Access database. The code enables me to run a DSN-Less connection. It requires the following input parameters:
FixConnections "MyServer", "MyDatabase"
The actual code can be found at:
I am not sure how I would automate this. The code is currently set up in a module. I have tested it (using the debug window and inputting these parameters) and it works nicely. I thought maybe I could use a macro or a put these parameters in the "on load" event of my opening form. But i am lost as to how I proceed. Can someone help?
Thanks
Your limits are only as far as you set your boundries......
FixConnections "MyServer", "MyDatabase"
The actual code can be found at:
I am not sure how I would automate this. The code is currently set up in a module. I have tested it (using the debug window and inputting these parameters) and it works nicely. I thought maybe I could use a macro or a put these parameters in the "on load" event of my opening form. But i am lost as to how I proceed. Can someone help?
Thanks
Your limits are only as far as you set your boundries......