|
-
Nov 13th, 2000, 12:21 AM
#1
Thread Starter
New Member
Here is my problem. I have a module with the following,
Public Access As Integer
Then I have a login form that sets Access to a value say 2.
Then when I load a new form called menu, I want to check
the value of Access and depending on that have certain buttons available or not available. For example,
say my menu screen has 3 buttons. If the access value is 2 then you can click two of the buttons and the other one is disabled, and so on..
But when I try to check the value of Access in the Form Load procedure of the Menu form, it says the value is always zero, but then if I try to find the value of Access again by say clicking a button it says it is the right value. Any ideas?
PLEASE HELP!!!!
-
Nov 13th, 2000, 12:33 AM
#2
Thread Starter
New Member
IGNORE THAT!!! I FIGURED IT OUT!
I was loading the second form before I set the variable.
I was stupid.. But all good!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|