N
NetworkTrade
Access2003;
am humbled and had to use a macro to open a report to a specific record...
in the Where clause of the OpenReport macro I put:
[ReportField]=Forms![Form1].[FormControl1]
everything works fine.......
but went around in circles attempting to do this via the OpenReport argument
and would greatly appreciate some patient guidance. Thought this should work:
Dim strCriteria As String
strCriteria = "[ReportField] = &[Me.FormControl1]&"
DoCmd.OpenReport "NameOfReport", acViewPreview, , strCriteria
I think I did every conceivable combination of " ' in surrounding the
variable FormControl1 (which is a text field) but to no avail...
am humbled and had to use a macro to open a report to a specific record...
in the Where clause of the OpenReport macro I put:
[ReportField]=Forms![Form1].[FormControl1]
everything works fine.......
but went around in circles attempting to do this via the OpenReport argument
and would greatly appreciate some patient guidance. Thought this should work:
Dim strCriteria As String
strCriteria = "[ReportField] = &[Me.FormControl1]&"
DoCmd.OpenReport "NameOfReport", acViewPreview, , strCriteria
I think I did every conceivable combination of " ' in surrounding the
variable FormControl1 (which is a text field) but to no avail...