Results 1 to 2 of 2
  1. #1
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    const use... (2000)

    i want to use this two const in all part of project (userform, bas, ecc...) but not sure...

    Actually i use this two const in a single module, is this correct?

    Global Const gPROVADatabasePath = "GCD01F4500DATIPUBBLICAANTIRICSTORICO_ANTIRIC. MDB"
    Global Const gPROVADatabasePath2 = "Data Source=GCD01F4500DATIPUBBLICAANTIRICSTORICO_ANTIRI C.MDB;"

  2. #2
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts

    Re: const use... (2000)

    I am not sure of your question exactly.

    But if you put those statements at the top of a module, the constants will be available in all the modues and all the userforms

    [You could change the "Global" to "Public" as I think global is the older nomenclature and is for backwards compatibility...]

    Steve

Posting Permissions

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