R
Ricter
"The expression you entered as a query parameter produced this error: 'The
object doesn't contain the Automation object 'subInvoices.VendorInvNum.''"
After update, the field mentioned is checked for a preexisting, duplicate
value.
It has always worked, up until a couple of weeks ago, when I started getting
this popup, and I have not changed anything in my db.
Any theories, please? Code follows...
Private Sub VendorInvNum_AfterUpdate()
Me.VendorInvNum = UCase(Me.VendorInvNum)
On Error GoTo VendorInvNum_AfterUpdate_Err
If Not IsNull(DLookup("InvoiceID", "tblInvoices", "VendorInvNum =
[subInvoices].[VendorInvNum]")) Then
MsgBox "Hey, you've referenced that invoice number before!", vbOKOnly,
"Invoice Number Checker"
End If
VendorInvNum_AfterUpdate_Exit:
Exit Sub
VendorInvNum_AfterUpdate_Err:
MsgBox Error$
Resume VendorInvNum_AfterUpdate_Exit
End Sub
object doesn't contain the Automation object 'subInvoices.VendorInvNum.''"
After update, the field mentioned is checked for a preexisting, duplicate
value.
It has always worked, up until a couple of weeks ago, when I started getting
this popup, and I have not changed anything in my db.
Any theories, please? Code follows...
Private Sub VendorInvNum_AfterUpdate()
Me.VendorInvNum = UCase(Me.VendorInvNum)
On Error GoTo VendorInvNum_AfterUpdate_Err
If Not IsNull(DLookup("InvoiceID", "tblInvoices", "VendorInvNum =
[subInvoices].[VendorInvNum]")) Then
MsgBox "Hey, you've referenced that invoice number before!", vbOKOnly,
"Invoice Number Checker"
End If
VendorInvNum_AfterUpdate_Exit:
Exit Sub
VendorInvNum_AfterUpdate_Err:
MsgBox Error$
Resume VendorInvNum_AfterUpdate_Exit
End Sub