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.
[blue] DoCmd.RunSQL "UPDATE [purple][b]ProductsTableName[/b][/purple] SET [PrtSel] = False;"
Me.Requery[/blue]
[blue] DoCmd.[purple][b]SetWarnings[/b][/purple] False
DoCmd.RunSQL "UPDATE ProductsTableName SET [PrtSel] = False;"
DoCmd.[purple][b]SetWarnings[/b][/purple] True
Me.Requery[/blue]
Dim strFltr As String
Dim itmItem
'Make sure there is something selected
If Me("ListBoxName").ItemsSelected.Count>0 Then
For Each itmItem in Me("ListBoxName").ItemsSelected
strFltr=strFltr & Me("ListBoxName").ItemData(itmItem) & ","
Next
strFltr="[IDFieldName] In(" & Left(strFltr,Len(strFltr)-1) & ")"
End If
'The result should look like: [IDFieldName] In(7,22,1975)
DoCmd.OpenReport "ReportName", acViewPreview, , strFltr