I'm trying to make a very simple order form. I have two tables - OrderHeader has information specific to the order itself, such as company name and order date. OrderDetail contains details such as item number, quantity and price, and links to OrderHeader on the OrderID field. Such a setup that has probably been done thousands of times since the history of the world began.
I created a form bound to OrderHeader and put in a SubForm based on OrderDetail, linking by OrderID. I haven't changed a single property since creating the form; I want to get the basic data model working and then I'll go back and customize how everything looks and works.
As it is now, if the user clicks in the subform to sort or filter anything, I get the following error:
It looks like the record source of the sub form is being mangled with a partial field name being added to the end of the query. I'm not sure how to fix that because I'm not sure what's causing it. Has anyone encountered this before or know what the problem might be?
This is in Access 2007.
I created a form bound to OrderHeader and put in a SubForm based on OrderDetail, linking by OrderID. I haven't changed a single property since creating the form; I want to get the basic data model working and then I'll go back and customize how everything looks and works.
As it is now, if the user clicks in the subform to sort or filter anything, I get the following error:
Code:
Syntax error in query expression '[SELECT [OrderDetail].[OrderNumber], [OrderDetail].[LineID], [OrderDetail].[Item], [OrderDetail].[Qty], [OrderDetail].[Price] FROM OrderDetail; ].Order'.
This is in Access 2007.
Comment