Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Public Variables

Status
Not open for further replies.

inastrol

Programmer
Joined
Aug 8, 2002
Messages
5
Location
US
Why can't my Access 2002 application recognize public variables?

I have a couple variables that I want made available to the entire application. I have declared them as Public in the General Declarations section of the startup form for the application. When I try to use a SET to initialize these variables in the Form_Open event for this form, I get a runtime error 2465 that says &quot;<Application name> can't find the field <field name> refered to in your expression&quot;.

 
Hiya,

Think you've posted this at a later date and I've answered it, but define globals (or public's) in a module.

Module's are where you define variables or functions or subs that can be seen by the whole application.

Regards,

Darrylle &quot;Never argue with an idiot, he'll bring you down to his level - then beat you with experience.&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top