Hi
I am trying to update a field in a table with the following code but I get the error. Two few arguments: expected 1
Here is my code
Help please
I am trying to update a field in a table with the following code but I get the error. Two few arguments: expected 1
Here is my code
Code:
Dim db As DAO.Database
Dim rst As DAO.Recordset
Dim strSQL As String
Set db = CurrentDb()
strSQL = "SELECT NextChase FROM tblChaseSummary WHERE ChaseSummaryID=Forms!frmChaseSummary!frmChaseDetails!ChaseSummaryID"
Set rst = db.OpenRecordset(strSQL, dbOpenDynaset)
With rst
If .RecordCount > 0 Then
.MoveFirst
.Edit
!NextChaseDate = Forms!frmChaseSummary!frmChaseDetails!NewChaseDate
.Update
End If
End With
Help please