B
Bonnie A
Hi everyone! Happy Thanksgiving! I'm using A02 on XP and I should know this
by now but it's always just one little thing I miss. Darn it.
I have a record on my subform with a field [PlanNum] and a report with a
query that contains the field [PlanNum]. On my subform, I have a button with
the following OnClick:
DoCmd.RunCommand acCmdSaveRecord
DoCmd.OpenReport "rJanusLtr", acViewPreview, , "[PlanNum]=" & Me.PlanNum
DoCmd.RunCommand acCmdZoom100
What am I missing? I've played with the quotes and can't get it to work.
When I click the button I get a parameter with my actual field value in it
and asking me to fill it in. If I fill in the blank spot with GP0041, it
works. I want it to open without having to satisfy the parameter, I could
put that in the query criteria. If the form is open to GP0041, I want to
view the report showing just that record.
Thank you in advance for your time and assistance. I would be lost without
the newsgroups.
by now but it's always just one little thing I miss. Darn it.
I have a record on my subform with a field [PlanNum] and a report with a
query that contains the field [PlanNum]. On my subform, I have a button with
the following OnClick:
DoCmd.RunCommand acCmdSaveRecord
DoCmd.OpenReport "rJanusLtr", acViewPreview, , "[PlanNum]=" & Me.PlanNum
DoCmd.RunCommand acCmdZoom100
What am I missing? I've played with the quotes and can't get it to work.
When I click the button I get a parameter with my actual field value in it
and asking me to fill it in. If I fill in the blank spot with GP0041, it
works. I want it to open without having to satisfy the parameter, I could
put that in the query criteria. If the form is open to GP0041, I want to
view the report showing just that record.
Thank you in advance for your time and assistance. I would be lost without
the newsgroups.