troubleshooting Question

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

Avatar of Dustin Stanley
Dustin Stanley asked on
Microsoft AccessVisual Basic.NET
23 Comments2 Solutions461 ViewsLast Modified:
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.


Join our community to see this answer!
Unlock 2 Answers and 23 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 23 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros