I received the following error message:
Run-time error '3000':
Reserved Error (-1517);there is no message for this error.
Clicking "Help" reveals that there is no help for this error.
Here is the code that produces the error:
dim db as Database
dim rst as Recordset
dim strName as String
dim lngID as Long
...(strName & lngID are assigned a value based on some logic - in this case "Sat" & 10866)...
Set db=CurrentDB
Set rst=db.OpenRecordset("tbl_" & strName)
rst.AddNew
rst.Fields("ID"
=lngID
And that's where the error occurs. The data type for that field is Long Integer. There are other fields that are assigned data after this line that work fine (after I move that yellow arrow down a line in the debug window).
Can someone tell me what these Reserved Errors are, especially this one in particular?
Thanks,
Bill
Run-time error '3000':
Reserved Error (-1517);there is no message for this error.
Clicking "Help" reveals that there is no help for this error.
Here is the code that produces the error:
dim db as Database
dim rst as Recordset
dim strName as String
dim lngID as Long
...(strName & lngID are assigned a value based on some logic - in this case "Sat" & 10866)...
Set db=CurrentDB
Set rst=db.OpenRecordset("tbl_" & strName)
rst.AddNew
rst.Fields("ID"
And that's where the error occurs. The data type for that field is Long Integer. There are other fields that are assigned data after this line that work fine (after I move that yellow arrow down a line in the debug window).
Can someone tell me what these Reserved Errors are, especially this one in particular?
Thanks,
Bill