Code: Select all
DoCmd.RunSQL "UPDATE tblReportList SET tblReportList.rptAccess = 0 " & _
"WHERE (((tblReportList.userID)='" & Me.byUserID.Value & Me!lstemployees.ItemsSelected & "','""')"
'lstemployees is a listbox that contains a list of all reports.
'byUserID is the matching user name in tblReportList