After several years of Access, VBA, Blah, Blah I thought I new a fair amount but has anybody noticed this one before.
I have an autoexec macro which calls a function, there is also an Access generated switchboard in the db. A text box on the switchboard is reliant upon a global variable being set in the Autoexec on the switchboards open event. The variable appeared to be losing it's value but after inserting several stops and following the code it appears that the switchboard event is firing before the autoexec called function.
Am I missing a trick here or does the documentation say to set the startup environment use the autoexec macro unless you have a switchboard.
Your views would be very much appreciated.
PS hopefully somebody can replicate it then I will know it's not just me.
I have an autoexec macro which calls a function, there is also an Access generated switchboard in the db. A text box on the switchboard is reliant upon a global variable being set in the Autoexec on the switchboards open event. The variable appeared to be losing it's value but after inserting several stops and following the code it appears that the switchboard event is firing before the autoexec called function.
Am I missing a trick here or does the documentation say to set the startup environment use the autoexec macro unless you have a switchboard.
Your views would be very much appreciated.
PS hopefully somebody can replicate it then I will know it's not just me.