Is the idea to filter the recordset? If so, how about:
On Error Goto ProcErr
strsql = "UPDATE Employees INNER JOIN TimeSheets ON _
Employees.EmployeeID = TimeSheets.EmployeeID SET _
TimeSheets.RunComm = -1 " & "where weekending = #" & _
[WeekEnding] & "# and recruiterid = " & [RecruiterID] & ";"
Me.RecordSource = strSql
Me.Requery
ProcExit:
Exit Sub
ProcErr:
msgbox "Error #" & Err.Number & ", " & Err.Description
Resume ProcExit
Venus said:
Private Sub SelectAllbtn_Click()
Dim strsql As String
strsql = "UPDATE Employees INNER JOIN TimeSheets ON Employees.EmployeeID
= TimeSheets.EmployeeID SET TimeSheets.RunComm = -1 " & _
"where weekending = #" & [WeekEnding] & "# and recruiterid = " &
[RecruiterID] & ";"
DBEngine(0)(0).Execute strsql, dbFailOnError
End Sub
:
What is the procedure?
:
I have an event procedure on a command button.
The procedure does not execute unless I put a break point in the code.
It works when I step thru it, but if I remove the break point and click on
the button, nothing happens.
Any clues????