Results 1 to 2 of 2

Thread: Form load does not recognize variable correctly!

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    5
    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!!!!


  2. #2

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    5
    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
  •  



Click Here to Expand Forum to Full Width