1. Click the Modules tab of the Database window.
2. Click New. Access opens a code window.
3. In the General Declarations section (top, with the Option statements),
declare your variable, e.g.:
Public gbInit As Boolean
You can now use bgInit anywhere in your application.
You do understand that when you are testing, and you reset your code, that
all globals are reset, so this variable will become False again?