I have a MSACCESS frontend that can link to two possible backends both are hosted on the same MYSQL server but differend DB names. One containing live data and one with testing data.
I want to display which database is connected on the login form to ensure that someone using the testing system does not accidentially use live data.
when originally using an access backend i used the below code.
Code:
Dim dbpath As String
dbpath = CurrentDb.TableDefs("users").Connect
I have now migrated the database to a online hosted MYSQL backend to enable multiple user access from multiple of-site locations and obviously this above code is not working in the MSACCESS frontend.
does anyone know a similar code to display the name of the mysql database the system is linked to (via ODBC and linked tables).
thanks.