Global Variables?

B

Brenda

It would be great if someone could point me in the right
direction.

I'm OK with dimming and using variables within procedures,
like behind forms, if I'm only referring to vriables
established within that one form.

I'm ok with calling procedures I put in modules, like the
on open event of a form, or on click of command button.

But what's not working the way I want it to is when I
attempt to reference a variable that was dimmed and given
a value in a module outside of the current form. Even
when I make it public.

What am I missing? Thanks very much.

PS: Yes, I have the great Access Enterprise Developers
book and am making my way through them... but can I cheat
a bit and have you just get past this or point me in the
right direction?
 
R

Rick Brandt

Brenda said:
It would be great if someone could point me in the right
direction.

I'm OK with dimming and using variables within procedures,
like behind forms, if I'm only referring to vriables
established within that one form.

I'm ok with calling procedures I put in modules, like the
on open event of a form, or on click of command button.

But what's not working the way I want it to is when I
attempt to reference a variable that was dimmed and given
a value in a module outside of the current form. Even
when I make it public.

What am I missing? Thanks very much.

PS: Yes, I have the great Access Enterprise Developers
book and am making my way through them... but can I cheat
a bit and have you just get past this or point me in the
right direction?

Did you dim them in another form's module or in a standard module? If in another
form is that form open? It would need to be. If you want it available all the
time then use a standard module. if you _did_ use a standard module then it
should be available to your form code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top