G
Guest
Need help please. I am trying to open a report that is based off of a query.
I want to open the report and pass the query for that report its criteria
from 2 fields on my form. The form name is Form1, the two fields are FName
and LName. The report is called Search.
This is what I have so far when I run the report using a macro and set the
Where condition:
[dbo_vDocProperty Query]![PrincipalFirstName] Like [Forms]![Form1]![FName]
And [dbo_vDocProperty Query]![lastname] Like [Forms]![Form1]![LName] And
[dbo_vDocProperty Query]![cparty] = "B"
How would I set the up using the DoCmd.OpenReport method instead of the macro.
Thanks for you help.
I want to open the report and pass the query for that report its criteria
from 2 fields on my form. The form name is Form1, the two fields are FName
and LName. The report is called Search.
This is what I have so far when I run the report using a macro and set the
Where condition:
[dbo_vDocProperty Query]![PrincipalFirstName] Like [Forms]![Form1]![FName]
And [dbo_vDocProperty Query]![lastname] Like [Forms]![Form1]![LName] And
[dbo_vDocProperty Query]![cparty] = "B"
How would I set the up using the DoCmd.OpenReport method instead of the macro.
Thanks for you help.