S
seeker
The following code is executed when a button on a form is clicked;
DoCmd.OpenReport "rptOutreachDoneMemberSelect", acViewPreview, , "[Last
Name] = '" & LastName.Value & "' and [First Name] = '" & FirstName.Value & "'"
[Last Name] and [First Name] are parameters in the query that the report is
based. I want data passed to those parameters when the report is opened by
the button. I also have these parameters in the title of the report so they
are needed in the query. I want the report to run without the parameter
asking for data.
DoCmd.OpenReport "rptOutreachDoneMemberSelect", acViewPreview, , "[Last
Name] = '" & LastName.Value & "' and [First Name] = '" & FirstName.Value & "'"
[Last Name] and [First Name] are parameters in the query that the report is
based. I want data passed to those parameters when the report is opened by
the button. I also have these parameters in the title of the report so they
are needed in the query. I want the report to run without the parameter
asking for data.