lead 27
07-21-2007, 07:14 AM
Hi
Does anyone know the code so that I can have close txt and a tick box with dont show this message again?
Thanks
Adam
RuralGuy
07-21-2007, 12:55 PM
Hi Adam,
Do you maintain a "system" table for configuration data? Do you open an invisible form first so you can do housekeeping chores at the beginning and and when the user exits the application?
lead 27
07-21-2007, 02:07 PM
No just straight into a visible form to select where they want to go
RuralGuy
07-21-2007, 04:17 PM
Did my previous questions give you any ideas? How are you launching the Splash Screen?
lead 27
07-22-2007, 03:07 AM
Hi
The system table sounds like a godd idea but i have never heard of it before so not sure what would go into it.
I am opening the splash screen by selecting it in the start up menu although this isn't ideal
RuralGuy
07-22-2007, 03:19 AM
Your "system" table would contain fields for whatever you need, in this case a flag (True/False) on whether to display the Splash Screen. Often the table has only one record. If you open an invisible form 1st, then you have the open and load events to code any startup housekeeping. You could check your "system" table and put up the Splash Screen if the flag field was still set to true. Your check box on the Splash Screen would change this flag if the user did not want to see the screen again. You could use the timer event of the invisible form to control how long the Splash Screen was up. You could then open the normal switchboard from the invisible form but don't close the invisible form. It will be the last form to close when the user exits the application and you have the Close and Exit events to code any housekeeping needed. You could even stop the user from exiting if you wanted to.
wiklendt
03-18-2008, 03:25 PM
thanks rural guy - your explanation sounds logical and i can see how, logically, that would work....
but as a new new newbie in VB coding via MS Access... uhm, what's the code for that? is it a module, or a macro? does the code perhaps go into the form itself??
RuralGuy
03-18-2008, 03:30 PM
The invisible form idea is simply that! You open it with the AutoExec macro as invisible and bind the form to your system table so it is always open and available.