brianstorm
New member
- Local time
- Today, 05:12
- Joined
- Sep 18, 2009
- Messages
- 3
Hi,
I have a form (lets call it events) which references customers.. they can be selected from a combo box... i have added a button to this form "add new customers" which opens my customers form at a data entry page.
I have managed to add a close from button to this customers form (here's the vba).
------------------------------------
Private Sub Close_Customers_Form_Click()
On Error GoTo Err_Close_Customers_Form_Click
DoCmd.Close
Exit_Close_Customers_Form_Click:
Exit Sub
Err_Close_Customers_Form_Click:
MsgBox Err.Description
Resume Exit_Close_Customers_Form_Click
End Sub
------------------------
What I'd like to do is to pass the newly entered customerID back to the original form so that it is the selected customer there.
Can anyone advise me as to how I might do this? Or if there a better way. I am going to have to repeat this type of action several times and I think it would improve usability a great deal.
Apologies if I have posted in the wrong forum.... not sure if this is a VBA or form question.
Many Thanks
Brian
I have a form (lets call it events) which references customers.. they can be selected from a combo box... i have added a button to this form "add new customers" which opens my customers form at a data entry page.
I have managed to add a close from button to this customers form (here's the vba).
------------------------------------
Private Sub Close_Customers_Form_Click()
On Error GoTo Err_Close_Customers_Form_Click
DoCmd.Close
Exit_Close_Customers_Form_Click:
Exit Sub
Err_Close_Customers_Form_Click:
MsgBox Err.Description
Resume Exit_Close_Customers_Form_Click
End Sub
------------------------
What I'd like to do is to pass the newly entered customerID back to the original form so that it is the selected customer there.
Can anyone advise me as to how I might do this? Or if there a better way. I am going to have to repeat this type of action several times and I think it would improve usability a great deal.
Apologies if I have posted in the wrong forum.... not sure if this is a VBA or form question.
Many Thanks
Brian