S
Susanne
I want to link a report based on criteria from a search form. Do I need to
set the report recordsource to a query based on the search form or can I just
link it like I can with a form?
I'm using the following code:
Dim stDocName As String
Dim stLinkCriteria As String
stLinkCriteria = "[DiveSuit_Number]=" & "'" & Me![lst_Dive] & "'"
stDocName = "rpt_DiveRecord_PageSign"
DoCmd.OpenReport stDocName, acPreview, stLinkCriteria
And it is opening up all the records, not just the one that is selected.
set the report recordsource to a query based on the search form or can I just
link it like I can with a form?
I'm using the following code:
Dim stDocName As String
Dim stLinkCriteria As String
stLinkCriteria = "[DiveSuit_Number]=" & "'" & Me![lst_Dive] & "'"
stDocName = "rpt_DiveRecord_PageSign"
DoCmd.OpenReport stDocName, acPreview, stLinkCriteria
And it is opening up all the records, not just the one that is selected.