R
Revned
i have a cmdPlaceHolder button with this code
Private Sub PlaceOrder_Click()
'Open my Order Forms and close Customer Book form and add information to
this form
DoCmd.OpenForm "Order Forms", acNormal, , , acFormAdd
'copy the CustomerID to Order Form
Forms![Order Forms]![Text13].Value = Me.Text13.Value
Forms![Order Forms]![Text15].Value = Me.Text15.Value
'set cursor to Invoice No
Forms![Order Forms]![Text63].SetFocus
'close cutomer book and open order forms acAdd
DoCmd.Close acForm, "Customer", acSaveYes
End Sub
this code will copy to my control from Customer form to Order Forms
what else di need to add to this code that once i click on Place Holder
button all information that just added will go directly to bound table
tblCustomer
thank you
Private Sub PlaceOrder_Click()
'Open my Order Forms and close Customer Book form and add information to
this form
DoCmd.OpenForm "Order Forms", acNormal, , , acFormAdd
'copy the CustomerID to Order Form
Forms![Order Forms]![Text13].Value = Me.Text13.Value
Forms![Order Forms]![Text15].Value = Me.Text15.Value
'set cursor to Invoice No
Forms![Order Forms]![Text63].SetFocus
'close cutomer book and open order forms acAdd
DoCmd.Close acForm, "Customer", acSaveYes
End Sub
this code will copy to my control from Customer form to Order Forms
what else di need to add to this code that once i click on Place Holder
button all information that just added will go directly to bound table
tblCustomer
thank you