My db's be is an odbc mysql db. I have added a login password to the program and wish to force users to download the new version from our ftp site. The autoexec macro calls a vba openprog module, in which the odbc connection string is set up and then opened with the following:
My idea is to change the odbc password (encoded in the MyConnectionString), triggering a connection error causing control to be sent to:
Infortunately before it goes to the Err_openprog it opens up the MySQL connector/ODBC data source configuration form, in which the user must click OK 3 times and then agree to close all macros before it ever sees my popup message--very inelegant. Is there a way to keep all of that from popping up but instead going straight to the err processing that pops up the reload message? Or is there a better way to force a user with an older program to reload so they can't get into the program without entering the proper password?
Code:
Set MyODBCdb = DBEngine(0).OpenDatabase(strdatabase, dbDriverNoPrompt, True, MyConnectionString)
Code:
Err_openprog:
DoCmd.OpenForm "reloadpopupforce"
Resume Exit_openprog