G
Guest
Hi there. Using A02 on XP. Want to open my report to the same record that is
showing on my form. I have a text field [PlanNum] that is unique. Have the
following 2 problems:
DoCmd.OpenReport "rPenAdvComLevLtr", acViewPreview, , [PlanNum] =
Me![PlanNum] - This one just opens all the records. If I check the filter
in the report, it reads (-1). ??? It should read something like
([PlanNum]=GP2097), shouldn't it?
DoCmd.OpenReport "rPenAdvComLevLtr", acViewPreview, , "[PlanNum] =" &
Me![PlanNum] - On this one I get a parameter box and the inquiry is my
actual Plan Number like GP2097. If I type the PlanNum into the parameter
box, I get the single record I want. But, I don't want to have to type it
into the parameter box.
I know I'm doing something simple simply stupid. Would appreciate any help
or advice. The quotes are kickin' my butt today! Thanks in advance for your
time.
showing on my form. I have a text field [PlanNum] that is unique. Have the
following 2 problems:
DoCmd.OpenReport "rPenAdvComLevLtr", acViewPreview, , [PlanNum] =
Me![PlanNum] - This one just opens all the records. If I check the filter
in the report, it reads (-1). ??? It should read something like
([PlanNum]=GP2097), shouldn't it?
DoCmd.OpenReport "rPenAdvComLevLtr", acViewPreview, , "[PlanNum] =" &
Me![PlanNum] - On this one I get a parameter box and the inquiry is my
actual Plan Number like GP2097. If I type the PlanNum into the parameter
box, I get the single record I want. But, I don't want to have to type it
into the parameter box.
I know I'm doing something simple simply stupid. Would appreciate any help
or advice. The quotes are kickin' my butt today! Thanks in advance for your
time.