K
Kari
Not so long ago when I was just learning Access, I found some code somewhere
that helped me open a report with criteria set on a form. The code used a
Temporary Variable to collect the info from the form (via a textbox) and
filter the query.
Now I'm revisiting the report, trying to add some additional functinality
and I'm wondering about that Temp. Variable. I've not seen TempVars in any
form suggested as solutions to anything. When I search on them I find almost
nothing on this discussion board (one poster wanted to know how to track them
and one tried to use them with no success). None of the books I've seen
mention them and help is (as is common) not very helpful (there just isn't
much there).
My question for you experts out there is: are Temp Vars good or evil? Are
they a good tool used in the right circumstances or will they come back to
haunt you and make you wish you had never taken up the Programmers Keyboard?
If they're useful, what circumstances call for them? What are the pitfalls
to watch out for? Are Global Variables a better idea?
I'd like to get the opinions of those who've used Access for a long time
(not just beginning to get comfortable with it, like me) to figure out if I
should retool my existing report, and whether I should use them in future
applications.
I appreciate your time and opinions.
Kari
that helped me open a report with criteria set on a form. The code used a
Temporary Variable to collect the info from the form (via a textbox) and
filter the query.
Now I'm revisiting the report, trying to add some additional functinality
and I'm wondering about that Temp. Variable. I've not seen TempVars in any
form suggested as solutions to anything. When I search on them I find almost
nothing on this discussion board (one poster wanted to know how to track them
and one tried to use them with no success). None of the books I've seen
mention them and help is (as is common) not very helpful (there just isn't
much there).
My question for you experts out there is: are Temp Vars good or evil? Are
they a good tool used in the right circumstances or will they come back to
haunt you and make you wish you had never taken up the Programmers Keyboard?
If they're useful, what circumstances call for them? What are the pitfalls
to watch out for? Are Global Variables a better idea?
I'd like to get the opinions of those who've used Access for a long time
(not just beginning to get comfortable with it, like me) to figure out if I
should retool my existing report, and whether I should use them in future
applications.
I appreciate your time and opinions.
Kari