G
Guest
I have a form and a report. I want the record that I am viewing on the form
to be the record that is displayed on the report.
I have found a similar question in the discussions and have tried that the
coding suggested but cannot get it to work. The coding in question is:-
Dim strDocName As String
Dim strWhere As String
strDocName = "rptSomeReport"
strWhere = "[RunID]=" & me!RunID
DoCmd.OpenReport strDocName, acPreview, , strWhere
The bit I don't understand is what to put in as RunID. Any help would be
appreciated.
to be the record that is displayed on the report.
I have found a similar question in the discussions and have tried that the
coding suggested but cannot get it to work. The coding in question is:-
Dim strDocName As String
Dim strWhere As String
strDocName = "rptSomeReport"
strWhere = "[RunID]=" & me!RunID
DoCmd.OpenReport strDocName, acPreview, , strWhere
The bit I don't understand is what to put in as RunID. Any help would be
appreciated.