Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2002
    Location
    Leicester - UK
    Posts
    820

    Unanswered: is there a way of setting a variable to the database

    instead of the to the forms and other sub componants, this is because public variables in a form are wiped if the form is closes
    Definition of a Beginner, Someone who doesn't know the rules.

    Definition of an Expert, Someone who knows when to ignore the rules.

  2. #2
    Join Date
    Nov 2002
    Posts
    272
    I think what you're looking for is global variables.

    You declare them in a VBA module:
    Global <VarName> as <type>
    and then you can use them throughout your application.

  3. #3
    Join Date
    Oct 2002
    Location
    Leicester - UK
    Posts
    820
    to many damn variable types... thx for showing me yet another
    Definition of a Beginner, Someone who doesn't know the rules.

    Definition of an Expert, Someone who knows when to ignore the rules.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •