I' ve used the following code in order to add records to a table using the not-in-list event:
Dim Db As Database
Dim Rs As Recordset
Set Db = CurrentDb
Set Rs = Db.OpenRecordset("tblËÅÎÅÉÓ", dbOpenDynaset)
On Error Resume Next
Rs.AddNew
Rs![ËÅÎÇ] = NewData
Rs.Update
If Err Then
MsgBox "An error occurred. Please try again."
Response = acDataErrContinue
Else
Response = acDataErrAdded
End If
Everything used to work fine at the begining. However (although I can't associate it with a specific change or addition), now when I add a not-in-list-word, I get an error message: "Type missmatch"
Does anyone know what is going wrong?
Dim Db As Database
Dim Rs As Recordset
Set Db = CurrentDb
Set Rs = Db.OpenRecordset("tblËÅÎÅÉÓ", dbOpenDynaset)
On Error Resume Next
Rs.AddNew
Rs![ËÅÎÇ] = NewData
Rs.Update
If Err Then
MsgBox "An error occurred. Please try again."
Response = acDataErrContinue
Else
Response = acDataErrAdded
End If
Everything used to work fine at the begining. However (although I can't associate it with a specific change or addition), now when I add a not-in-list-word, I get an error message: "Type missmatch"
Does anyone know what is going wrong?