We help IT Professionals succeed at work.
Get Started

MS Access Form Customer Order Form Building Button Open Up New Form To Same Customer ID Record

Last Modified: 2016-10-04
Ok I am working on my Customer Order Forms.

Tables Involved are Customers, Orders, and OrderDetails.

Forms are called: frmCustomers, frmOrders, and sbfrmOrderdetails.

I have it set up like this.

1: Customer Profile Form with a button that says Add New Order.

2: Click the Add New Order Button.

3: The Order Form Pops Up with the OrderDetails Subform attached to the Orders Form.

Very basic simple but I can't figure out how to get the CustomerID to match up on the Orders Form when I click the Add New Orders button.

On the Add New Orders button I have set up and tried some code and Macros like:

OnMouseDown: SaveRecord


OnClick: OpenForm frmOrders  Where Condition setting being "[CustomerID]=" & Me![CustomerID]

I have tried different things nothing. Also I would like a button or radio button in my Orders Form to autofill the shipping address information tot he same as billing information.

Remember this is to link the Orders Form with the customer on existing customers AND NEW customers also.

CustomerID Links Customers to Orders and Order ID Links Orders to Order Details.


Watch Question
Infotrakker Software
Most Valuable Expert 2012
Top Expert 2014
This problem has been solved!
Unlock 2 Answers and 23 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE