how to declare a boolean variable project wide

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to set a boolean variable to be used for all forms in the database.
How is this accomplished?

thanks!
 
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top