J
Janie
I have never encountered this error before, so any guidance will be
appreciated.
I am working in Access 97.
I have a NotInList Event on a combo box. Works fine UNTIL I split the
Database. Now I get Invalid Operation error. I really do need back end
split from front end, so this is a nasty problem for me. Ideas?
My Code on NotInList Event:
Dim Db As Database, Rs As Recordset
Dim Msg As String, NewID As String
On Error GoTo Err_TTID_NotInList
If NewData = "" Then Exit Sub
Msg = "'" & NewData & "' is not in the list." & vbCr & vbCr
Msg = Msg & "Do you want to add it?"
If MsgBox(Msg, vbQuestion + vbYesNo, "NOT ON LIST") = vbNo Then
Response = acDataErrContinue
MsgBox "Please try again.", , "NOT IN LIST"
Else
Set Db = CurrentDb
Set Rs = Db.OpenRecordset("tblTaskTypes", DB_OPEN_TABLE)
Rs.AddNew
Rs![TaskType] = NewData
Rs.Update
Response = acDataErrAdded
End If
appreciated.
I am working in Access 97.
I have a NotInList Event on a combo box. Works fine UNTIL I split the
Database. Now I get Invalid Operation error. I really do need back end
split from front end, so this is a nasty problem for me. Ideas?
My Code on NotInList Event:
Dim Db As Database, Rs As Recordset
Dim Msg As String, NewID As String
On Error GoTo Err_TTID_NotInList
If NewData = "" Then Exit Sub
Msg = "'" & NewData & "' is not in the list." & vbCr & vbCr
Msg = Msg & "Do you want to add it?"
If MsgBox(Msg, vbQuestion + vbYesNo, "NOT ON LIST") = vbNo Then
Response = acDataErrContinue
MsgBox "Please try again.", , "NOT IN LIST"
Else
Set Db = CurrentDb
Set Rs = Db.OpenRecordset("tblTaskTypes", DB_OPEN_TABLE)
Rs.AddNew
Rs![TaskType] = NewData
Rs.Update
Response = acDataErrAdded
End If