Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
When the report opens up, it has a query as a record source which has every record. Also when the report opens up another little form opens up and with list of names. When I click on any of the names the report used to display only that name and the transaction for that name only instead of every record. At this point the report is already open. I am applying a filter on already open report
Now when I click on any of the names it does not do anything at all. I apologize for not been more specific before.
Lameid, I have already put space and set the filter on. It seems that the filter on works but it also closes the little form
Reports("sample").Filter = "ID = " & lstCFAMS.Value
Reports("sample").FilterOn = True
I will look up how to use the where clause
docmd.OpenReport "sample", acViewPreview,,"ID = " & lstCFAMS.Value
Dim strWhere as String
Dim strRptName as String
strRptName = "rptWhatever"
strWhere = "1=1 "
If not IsNull(Me.lstCFAMS) Then
strWhere = strWhere & " AND ID=" & lstCFAMS
End If
DoCmd.OpenReport strRptName, acViewPreview, , strWhere
Dim strWhere as String
Dim strRptName as String
strRptName = "rptWhatever"
strWhere = "1=1 "
If not IsNull(Me.lstCFAMS) Then
strWhere = strWhere & " AND ID=""" & lstCFAMS & """ "
End If
DoCmd.OpenReport strRptName, acViewPreview, , strWhere