M
ME
I have a command button on a form that activates a
macro. I'm trying to program it to print out the report
for a single record (out of 1200 records in the table).
When I hit the button, it successfully prints the report
I tell it to (it prompts me for the primary key number
for the record I want to print). But then it also prints
whatever form I happen to be looking at when I hit the
button.
The macro is only two actions, with an OpenReport action
and a PrintOut action.
The OpenReport's Where Condition is:
[Potential Donors]![ContactID]=[Forms]![Potential Donors]!
[ContactID]
"ContactID" is my label the primary key. The PrintOuts'
print range is "selection."
Help!
-ME
macro. I'm trying to program it to print out the report
for a single record (out of 1200 records in the table).
When I hit the button, it successfully prints the report
I tell it to (it prompts me for the primary key number
for the record I want to print). But then it also prints
whatever form I happen to be looking at when I hit the
button.
The macro is only two actions, with an OpenReport action
and a PrintOut action.
The OpenReport's Where Condition is:
[Potential Donors]![ContactID]=[Forms]![Potential Donors]!
[ContactID]
"ContactID" is my label the primary key. The PrintOuts'
print range is "selection."
Help!
-ME