Hi and thanks for taking a moment to read this question.
Access Version - MS Access 2010
Code - VBA
Here's the issue:
1 Form - frmWorkOrders
2 Form - frmAddCus
3 Form - NavigationForm
Both - frmAddCus and frmWorkOrders are SubForms Inside the NavigationForm.
In frmWorkOrders [Cus_Account_Name] is a LookUp field and I saw a video of someone processing the vba to pass information from one form to another even with a LookUp field as the target destination.
Fields of concern:
Cus_Account_Name (frmAddCus and frmWorkorders)
I need to Pass the text input from Customer_Account_Name from frmAddCus to Cus_Account_Name in frmWorkorder
I'm using a Close button on frmAddCus to process the Pass-Through in the OnClick Event.
Code I'm trying to pass with:
Private Sub Cmd_AddNew_CloseForm_Click()
Me.Refresh
If IsNull([Cus_Account_Name]) Then
'do nothing
Else
Forms![NavigationForm].Form.[frmWorkOrders].Form.Cus_Account_Name = Me.Cus_ID
Forms![NavigationForm].Form.[frmWorkOrders].Form.Cus_Account_Name.SetFocus
End If
DoCmd.Close
End Sub
Most common Error - 2465 - Microsoft can't find the "|1" you referenced.
I haven't referenced a "|1" anywhere
Not sure what I'm missing but it's becoming very annoying.
Your help is appreciated.
Thank you!
Access Version - MS Access 2010
Code - VBA
Here's the issue:
1 Form - frmWorkOrders
2 Form - frmAddCus
3 Form - NavigationForm
Both - frmAddCus and frmWorkOrders are SubForms Inside the NavigationForm.
In frmWorkOrders [Cus_Account_Name] is a LookUp field and I saw a video of someone processing the vba to pass information from one form to another even with a LookUp field as the target destination.
Fields of concern:
Cus_Account_Name (frmAddCus and frmWorkorders)
I need to Pass the text input from Customer_Account_Name from frmAddCus to Cus_Account_Name in frmWorkorder
I'm using a Close button on frmAddCus to process the Pass-Through in the OnClick Event.
Code I'm trying to pass with:
Private Sub Cmd_AddNew_CloseForm_Click()
Me.Refresh
If IsNull([Cus_Account_Name]) Then
'do nothing
Else
Forms![NavigationForm].Form.[frmWorkOrders].Form.Cus_Account_Name = Me.Cus_ID
Forms![NavigationForm].Form.[frmWorkOrders].Form.Cus_Account_Name.SetFocus
End If
DoCmd.Close
End Sub
Most common Error - 2465 - Microsoft can't find the "|1" you referenced.
I haven't referenced a "|1" anywhere
Not sure what I'm missing but it's becoming very annoying.
Your help is appreciated.
Thank you!