ListO
Señor Member
- Local time
- Today, 04:44
- Joined
- Feb 2, 2000
- Messages
- 167
I'm having trouble using public variables.
I have declared several public variables to be used throughout my database, using:
Public pChar1 as String, pChar2 as String
I have tried declaring them in the general declarations area of class modules, also in the general declarations area of a regular module (whatever that's called), and have the same problem. I have also checked that "Option Private Module" is not active.
Trouble is that queries do not seem to recognize these variables when I try to use them as criteria, such as
Criteria: <> pChar1
Is there some secret to using them in queries, or using them at all?
Hoping for relief...
I have declared several public variables to be used throughout my database, using:
Public pChar1 as String, pChar2 as String
I have tried declaring them in the general declarations area of class modules, also in the general declarations area of a regular module (whatever that's called), and have the same problem. I have also checked that "Option Private Module" is not active.
Trouble is that queries do not seem to recognize these variables when I try to use them as criteria, such as
Criteria: <> pChar1
Is there some secret to using them in queries, or using them at all?
Hoping for relief...