Of course, my first reply is "Wow, you got to work on Acme Firework?" Sorry,
had to be said.
I would like to use that public const method, but how do I reference in
other modules? Is it something like
VBGLOBALS.COMPANY_NAME
?
--
Ficticiously Yours, Biggles
"John Nurick" wrote:
> Hi Biggles,
>
> Many of my databases have a module called vbGlobals which contains
> (among other things) constant declarations for this sort of thing:
>
> Public Const COMPANY_NAME = "Acme Firework Corp"
>
> Another approach - if this is data that changes from time to time - is
> to have a table for your settings:
>
> tblSettings
> SettingName - Text, primary key
> SettingValue - Text
>
> with records such as
> "Plan Year", "2006"
>
> You can then use DLookup() to retrieve the value wherever it's needed.
>
>
>
> On Tue, 2 May 2006 13:03:02 -0700, Biggles
> <(E-Mail Removed)> wrote:
>
> >I am having trouble with something I think is simple. Here is what I want to
> >do. I want to create a module that is simply a list of my commonly used
> >pieces of information, which I only currently have one, but nonetheless, I
> >want to use that in many queries, forms, reports. How should I set up the
> >module and then how do I reference it elsewhere. Right now, I simply have:
> >
> >txtPLAN_YR = "2006"
> >
> >in several places. I want to make that go away. Please help.
>
> --
> John Nurick [Microsoft Access MVP]
>
> Please respond in the newgroup and not by email.
>
>
|