N
NEWER USER
I have a continuous form with Filtered records. I want to update a single
field for all filtered records showing. My code is updating the current
record and not all filtered records. Any help appreciated.
Private Sub Update_Click()
On Error GoTo Update_Click_Err
Dim strSQL As String
strSQL = "UPDATE tblData SET tblData.ThreatStatus = 'Closed' WHERE
(((tblData.ID)=[Forms].[frmManagebyThreat].[ID]))"
DoCmd.RunSQL strSQL
Update_Click_Exit:
Exit Sub
Update_Click_Err:
MsgBox Err.description
Resume Update_Click_Exit
End Sub
field for all filtered records showing. My code is updating the current
record and not all filtered records. Any help appreciated.
Private Sub Update_Click()
On Error GoTo Update_Click_Err
Dim strSQL As String
strSQL = "UPDATE tblData SET tblData.ThreatStatus = 'Closed' WHERE
(((tblData.ID)=[Forms].[frmManagebyThreat].[ID]))"
DoCmd.RunSQL strSQL
Update_Click_Exit:
Exit Sub
Update_Click_Err:
MsgBox Err.description
Resume Update_Click_Exit
End Sub