Hi
I have a form called customer with a field called customerID and I have another form called orders with a field called customerID and an autonumber orderID.
What I am trying to do is when the form customer is open i would like to be able to press the order button and have the order form open with the cutomer id from the form customer.
I tried this:
Private Sub Orders_Click()
DoCmd.OpenForm "orders", , , "[customerID] = Forms![Customer].form![customerID]"
End Sub
thanks
frank
I have a form called customer with a field called customerID and I have another form called orders with a field called customerID and an autonumber orderID.
What I am trying to do is when the form customer is open i would like to be able to press the order button and have the order form open with the cutomer id from the form customer.
I tried this:
Private Sub Orders_Click()
DoCmd.OpenForm "orders", , , "[customerID] = Forms![Customer].form![customerID]"
End Sub
thanks
frank