Hello,
I need to deploy a revamped front-end database to users in the field. This new front-end includes a new module that needs to run and add new fields to the back end tables, increase the size of a field in one of the tables, create a new back-end table, relate it to the existing tables and link the front end to the back-end tables.
I need this code to run once only when the user opens the new front end and then never run again when the user subsequently opens the front end.
I can't find anything on the Internet about how to do this, if there is a way. I'm thinking of running it through the autoexec and then deleting the module but then the next time the autoexec runs it will seize up because it can't find the code.
Any ideas anyone?
P.S. After posting this I thought of a way to do this but I'm not sure it's generically valid. All I need to do is check for the existence of the added table at the start of the code. If it isn't there, run the code. If it is there, exit the sub. This is fine for this occasion, where I add a table. But is there a better way for all occasions?