I have a main form that has a label that displays a status message to show the status of what the database is doing (like connecting to ODBC tables).
I'm having a problem where I have some code that runs to relink ODBC tables using a DSN-less connection, but before doing this I would like the status label to display a message like "Connecting to data sources..." but unfortunately it appears that Access does not execute code in sequential order. The label does not change, but the connection routine runs, and after the connections have been updated then the label is changed. Is there anyway to make a label act in the way I want it to?
I'm having a problem where I have some code that runs to relink ODBC tables using a DSN-less connection, but before doing this I would like the status label to display a message like "Connecting to data sources..." but unfortunately it appears that Access does not execute code in sequential order. The label does not change, but the connection routine runs, and after the connections have been updated then the label is changed. Is there anyway to make a label act in the way I want it to?
Code:
Case "CONNECT"
UpdateConnectionStatus
ConnectToData
UpdateConnectionStatus