Hi,
I have a report that diplays info on a single person. It has a parameter of 'Person ID'.
I also have a continuous form which displays a list of people from the database with a command button on each row for each person.
I want to be able to click on the command button on a single row and pass that per_id to the parameter on the report.
I have the following VBA so far:
But when I click the command button I still get prompted for the parameter??
Any suggestions?
Cheers
Foxy
I have a report that diplays info on a single person. It has a parameter of 'Person ID'.
I also have a continuous form which displays a list of people from the database with a command button on each row for each person.
I want to be able to click on the command button on a single row and pass that per_id to the parameter on the report.
I have the following VBA so far:
Code:
DoCmd.OpenReport "rptWholePerson", acViewReport, , "[Person ID] = Me.[per_id]"
But when I click the command button I still get prompted for the parameter??
Any suggestions?
Cheers
Foxy