N
Niklas Östergren
Hi!
What scoop does a variable have if I declare it like this (Dim strSQL As
String)? Is it avalible through the whole code module or is it just in the
sub/function?
I´d like to declare a variable so I can use it through the whole module but
not as public (i guess).
What I´m trying to do is this:
I have several QBF fom´s. In one of them I let the user select which type of
e-mial address to display (Private, Home, Work etc.). I create a WHERE
clause which I use to create a table containing the persons ID which meet
the critera. Now I also need to use this WHERE clause to create another
table but then holding EmailID instead of PersonID so my thought is to
create a new function but based on another query different from the one with
PersonID.
Well this is not a good explanation so maby it´s easyer for you if you just
know what I´m after!? Which is to use the same variable in two different
functions in the same form module.
TIA!
// Niklas
What scoop does a variable have if I declare it like this (Dim strSQL As
String)? Is it avalible through the whole code module or is it just in the
sub/function?
I´d like to declare a variable so I can use it through the whole module but
not as public (i guess).
What I´m trying to do is this:
I have several QBF fom´s. In one of them I let the user select which type of
e-mial address to display (Private, Home, Work etc.). I create a WHERE
clause which I use to create a table containing the persons ID which meet
the critera. Now I also need to use this WHERE clause to create another
table but then holding EmailID instead of PersonID so my thought is to
create a new function but based on another query different from the one with
PersonID.
Well this is not a good explanation so maby it´s easyer for you if you just
know what I´m after!? Which is to use the same variable in two different
functions in the same form module.
TIA!
// Niklas