K
Kari
I would like to build a form with several combo boxes to select criteria for
a report (in Access 2007). After searching the discussion boards I have
found two different ways to do this (thank you to all of you who answer
questions!).
1. Create a parameter query that references the fields on my form, then
base my report on that query.
2. Use VB to concatenate the contents of each cell into a SQL string, which
can then be used with DoCmd.OpenReport as the Where clause.
My question is, which method is better? The second seems more complicated
to me, but that may just be because of my inexperience with VB. Is one way
inherently better/faster/more stable than the other? Will one way cause
problems for me down the road that I can’t even imagine? Will future
generations of programmers curse me for giving them clunky code to have to
maintain???
Please give me the benefit of your experience and point me in the right
direction. I’d like to do this right the *first* time.
TIA
Kari
a report (in Access 2007). After searching the discussion boards I have
found two different ways to do this (thank you to all of you who answer
questions!).
1. Create a parameter query that references the fields on my form, then
base my report on that query.
2. Use VB to concatenate the contents of each cell into a SQL string, which
can then be used with DoCmd.OpenReport as the Where clause.
My question is, which method is better? The second seems more complicated
to me, but that may just be because of my inexperience with VB. Is one way
inherently better/faster/more stable than the other? Will one way cause
problems for me down the road that I can’t even imagine? Will future
generations of programmers curse me for giving them clunky code to have to
maintain???
Please give me the benefit of your experience and point me in the right
direction. I’d like to do this right the *first* time.
TIA
Kari