R
Rachel
I have used this code many times and have no idea why it
is not working for me now. I receive a run-time error
3077 syntax error (missing operator) on the rst.findfirst
line. I have a field on a form that I want the users to
be able to update if new information is needed. The
field is tied to a table.
Dim dbs As Database
Dim rst As Recordset
Dim strName As String
Set dbs = CurrentDb()
Set rst = dbs.OpenRecordset("QualityAnalysts",
dbOpenDynaset)
'strName = Me!QAName
rst.FindFirst Me!QAName
If rst.NoMatch Then
rst.AddNew
rst.MoveLast
rst.Edit
rst!employeename = Me!QAName
rst.Update
rst.close
End If
is not working for me now. I receive a run-time error
3077 syntax error (missing operator) on the rst.findfirst
line. I have a field on a form that I want the users to
be able to update if new information is needed. The
field is tied to a table.
Dim dbs As Database
Dim rst As Recordset
Dim strName As String
Set dbs = CurrentDb()
Set rst = dbs.OpenRecordset("QualityAnalysts",
dbOpenDynaset)
'strName = Me!QAName
rst.FindFirst Me!QAName
If rst.NoMatch Then
rst.AddNew
rst.MoveLast
rst.Edit
rst!employeename = Me!QAName
rst.Update
rst.close
End If