Public (Global) variables

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ninad

    #1

    Public (Global) variables

    I capture the userid via a Login form and I need to use this userid for
    other forms as well. How and where can I declare this variable
    "strLoginID " such that its value can be used throughout the
    application.

    Regards,

    Ninad.

  • Sunil

    #2
    Re: Public (Global) variables

    You should declare it in the 'General' section of a module. You
    probably have one module containing your utility functions etc. You can
    use the same.

    HTH

    Sunil Korah

    Comment

    • altacct@yahoo.com

      #3
      Re: Public (Global) variables

      Ack! Don't build your own security system. There's a perfectly good one
      built in to access. When the person logs in, you'll be able to get
      their login with the built in function CurrentUser().

      Jeremy

      Ninad wrote:[color=blue]
      > I capture the userid via a Login form and I need to use this userid[/color]
      for[color=blue]
      > other forms as well. How and where can I declare this variable
      > "strLoginID " such that its value can be used throughout the
      > application.
      >
      > Regards,
      >
      > Ninad.[/color]

      Comment

      • pietlinden@hotmail.com

        #4
        Re: Public (Global) variables


        Ninad wrote:[color=blue]
        > Thanks for pointing towards a good direction. Is there any reference
        > material on the web where I can learn how to use it. I am not[/color]
        familiar[color=blue]
        > with Access security system and will need a lead. TIA.
        >
        > Ninad.[/color]

        MS has a white paper on it. Check their website.

        Comment

        • Ninad

          #5
          Re: Public (Global) variables

          Thanks for pointing towards a good direction. Is there any reference
          material on the web where I can learn how to use it. I am not familiar
          with Access security system and will need a lead. TIA.

          Ninad.

          Comment

          Working...