Boy do I feel inadequate with what I thought would be a simple task.
What I want to do is to sum up some data that is across 2 tables which I thought would be simple.
Table 1 has the customer data in it name, address etc and the salesperson and an order number
Table 2 is linked to Table 1 by the order number and has the sales data in it - there could be multiple lines of sales data for each order number .
The task:
On a form display the salesman name and the total of all of his sales for all of the order numbers and count the number of orders - simple in your head add them up order by order that he is responsible for.
So I have tried various attempts to do so - created new queries, tried using DSum,DCount but no matter what I do I can't make it work.
Using queries seemed the easiest but no matter how I try and structure the query I get the Salemans name and a list of the Orders and their totals. Have tried using Distinct - nope that doesn't work.
If I wanted to do this in a report it would be easy - just add the necessary grouping levels, hide the detail and use the Grand Totals - BUT I need the info on a form and you can't put a report on a form.
So after you finish laughing at my inability to figure this out I would appreciate any suggestions you might have to do what I thought was going to be simple!
Thanks in advance for any help!