princessdmb
Registered User.
- Local time
- Today, 00:16
- Joined
- Sep 1, 2011
- Messages
- 15
Hello,
Getting an error message "Run-time error '2465' can't find the field '|1' referred to in your expression" every time i click my submit button from my form.
Here's my code
Private Sub Command128_Click()
If IsNull([Doc-ID_RQN-No]) Then
MsgBox "The eCAPS Document ID is missing, please enter the ID number."
ElseIf [Forms]![eCAPS_OrderRqt_frm].[Form].[txtOrderStatus] = "eCAPS" Then
[Forms]![eCAPS_OrderRqt_frm].[Form].[txtOrderStatus] = "Pending OPS Approval (eCAPS)"
End If
Me.eCAPS_EntryDate.Value = Date
DoCmd.Close acForm, "eCAPS_OrderRqt_frm", acSaveNo
MsgBox "ePurchase Request has been updated and sent to OPS Management Review"
DoCmd.OpenForm "SearchBuyerOrder_frm", acNormal, ""
End Sub
Please see attached screen shots, what i need is when a user clicks the Submit button the Request status [txtOrderStatus] changes from eCAPS to Pnd Ops Approval, automatically add the current date and close down the form. But if the eCAPS Doc ID is blank, then a message would display indicating that eCAPS id# is missing and cannot change the status until the id# is entered.
Please help.:banghead:
Getting an error message "Run-time error '2465' can't find the field '|1' referred to in your expression" every time i click my submit button from my form.
Here's my code
Private Sub Command128_Click()
If IsNull([Doc-ID_RQN-No]) Then
MsgBox "The eCAPS Document ID is missing, please enter the ID number."
ElseIf [Forms]![eCAPS_OrderRqt_frm].[Form].[txtOrderStatus] = "eCAPS" Then
[Forms]![eCAPS_OrderRqt_frm].[Form].[txtOrderStatus] = "Pending OPS Approval (eCAPS)"
End If
Me.eCAPS_EntryDate.Value = Date
DoCmd.Close acForm, "eCAPS_OrderRqt_frm", acSaveNo
MsgBox "ePurchase Request has been updated and sent to OPS Management Review"
DoCmd.OpenForm "SearchBuyerOrder_frm", acNormal, ""
End Sub
Please see attached screen shots, what i need is when a user clicks the Submit button the Request status [txtOrderStatus] changes from eCAPS to Pnd Ops Approval, automatically add the current date and close down the form. But if the eCAPS Doc ID is blank, then a message would display indicating that eCAPS id# is missing and cannot change the status until the id# is entered.
Please help.:banghead: