I shall try and explain what I am trying to achieve
I have 2 Databases one is a Purchase Order Database which is has an order
table (bound to form) and an order detail table (bound to subform). The Job
Ref field is in the main form and the subform contains the price of each item
purchased.
The other database is a Job Costing Database this has a main table (bound to
form) and product detail table (bound to subform). The main form has a field
for Job Ref to be entered and a field for the total purchases for the job.
At present we have to run a report every month in the Purchase Order
database that calculates the total purchases per job number, then enter the
figure in the job costing database. (As our jobs can run over a length of
time the figures do change month to month) This report is now getting quite
large and the process time consuming so i was looking for a way for the Job
Costing database to update automatically from the Purchase Order database.
So far I have run the report in Purchase Orders and have exported it to
Excel I have then linked the Excel spreadsheet to the Job Costings as a
table. My plan was to run the report in Purchase Orders and each time I
export it to excel replace the existing spreadsheet so that the linked table
in the Job Costings is also updated.
I am struggling with how to get the total figure displayed in the Job
Costing Form. I had already raised a query which totals each job in the Job
Costing from the linked Excel table but I am not sure how to take these
totals and display them in the Job Costings main form
I hope this makes sense. I am self taught on Access using forums like this
to help me so I have no doubt done this the long way round but it is not
until i have been using a database for x amount of time that i think oh it
would be nice if it could do this.
In a general sort of way you could create a totals query grouped on JobRef,
with a Sum for Expr1. You could also use a form/subform, or show the total
[quoted text clipped - 20 lines]
I know what I want it to do but I can't get it to work. Please help