MuskokaMad
Registered User.
- Local time
- Yesterday, 22:43
- Joined
- Feb 28, 2010
- Messages
- 29
Here I thought I understood this command...
Thanks again for your help.
In my database I want to move the user through forms passing some information along and closing the previous form.
As an example I have a Form frm_NewCustomerEntry with a button cmdNewOrder that has in its OnClick Event:
Private Sub cmdNewOrder_Click()
DoCmd.OpenForm "frm_NewOrderEntry2", acNormal, , , acFormAdd
Forms!frm_NewOrderEntry2.cboCustomer = Me.ID
Forms!frm_NewOrderEntry2.cboStore = Forms!frm_NewCustomerEntry!StoreInfo_ID
DoCmd.Close acForm, "frm_NewCustomerEntry", acSaveYes
End Sub
It does what I expected Pass the 2 pieces of data along to the new form. Closes and opens the new form.
What I did not expect is that it can execute even if controls with required values of yes are not entered.
What is it I am doing wrong?
Jason
Thanks again for your help.
In my database I want to move the user through forms passing some information along and closing the previous form.
As an example I have a Form frm_NewCustomerEntry with a button cmdNewOrder that has in its OnClick Event:
Private Sub cmdNewOrder_Click()
DoCmd.OpenForm "frm_NewOrderEntry2", acNormal, , , acFormAdd
Forms!frm_NewOrderEntry2.cboCustomer = Me.ID
Forms!frm_NewOrderEntry2.cboStore = Forms!frm_NewCustomerEntry!StoreInfo_ID
DoCmd.Close acForm, "frm_NewCustomerEntry", acSaveYes
End Sub
It does what I expected Pass the 2 pieces of data along to the new form. Closes and opens the new form.
What I did not expect is that it can execute even if controls with required values of yes are not entered.
What is it I am doing wrong?
Jason