I'm sure one of you techies can tell me what I am doing wrong, it is bound to be simple!
I have 2 tables Customers and Orders
Customers has a UniqueID
Orders for a particular Customer all have Orders.Customer equal to the UniqueID of the Customer table.
In the Customer form, I simply require a Textbox to show the Total cost of all orders the particular customer has.
I would like to enter
SELECT SUM(ORDERS.COST) FROM ORDERS WHERE ORDER.CUSTOMER = CUSTOMER.UNIQUEID;
When I enter this in the Control Source of the textbox, I just get #name? when I run the form.
Why?
Can you help?
Dave Swift
I have 2 tables Customers and Orders
Customers has a UniqueID
Orders for a particular Customer all have Orders.Customer equal to the UniqueID of the Customer table.
In the Customer form, I simply require a Textbox to show the Total cost of all orders the particular customer has.
I would like to enter
SELECT SUM(ORDERS.COST) FROM ORDERS WHERE ORDER.CUSTOMER = CUSTOMER.UNIQUEID;
When I enter this in the Control Source of the textbox, I just get #name? when I run the form.
Why?
Can you help?
Dave Swift