benaround2
Programmer
What am I doing wrong, it keeps coming up with a status 130172 error code.
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
rs.Open "tblReceivings", CurrentProject.Connection, adOpenKeyset, adLockOptimistic, adCmdTable
rs.AddNew
rs.Fields("VendorProductID") = 1
rs.Fields("CategoryID") = 1
rs.Fields("LocationID") = 2
rs.Fields("ReceivingDate") = Date
rs.Fields("ReceivingQuantity") = 20
rs.Fields("TeleFormID") = 1
rs.Fields("BeginningFormSerialNumber") = 890000
rs.Fields("EndingFormSerialNumber") = 890020
rs.Fields("ReceivingEmployeeID") = 1
rs.Update
Thanks ahead of time for your help.
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
rs.Open "tblReceivings", CurrentProject.Connection, adOpenKeyset, adLockOptimistic, adCmdTable
rs.AddNew
rs.Fields("VendorProductID") = 1
rs.Fields("CategoryID") = 1
rs.Fields("LocationID") = 2
rs.Fields("ReceivingDate") = Date
rs.Fields("ReceivingQuantity") = 20
rs.Fields("TeleFormID") = 1
rs.Fields("BeginningFormSerialNumber") = 890000
rs.Fields("EndingFormSerialNumber") = 890020
rs.Fields("ReceivingEmployeeID") = 1
rs.Update
Thanks ahead of time for your help.