Thanks for your response but I think I failed to communicate some
information. Not quite sure how to do this without getting real
lengthy.
The form I'm using is setup on a tab. This form pulls a number of
different
records that have been entered for 1 customer i.e. could have 5
different
customer for let's say one load number. So basically you can have one
load
number but 5 different customer.
Everything works wells exactly the way I would like it too with my
limited
knowledge. However, I want to be able to track the actual miles from
one
customer to another. The probelm is if I put ([hubend])-([hubstart])
the
figures shows up for all customer and then it just keeps adding rather
then
maintain a unique hub start and end figure for each customer with total
miles.
I hope I didn't make this really harder then I needed to. Kind of hard
to
communicate what I see to writing. Any idea's on what I can do.
Thx
:
Don't store the total in your table.
Instead, create a query, and type this into the Field row in query
design:
Total: [HubEnd] - [HubStart]
Save the query, and use it anywhere you would have used your table.
The
beauty is that this can never go wrong the way it could if you stored
it
in
the table.
More info:
Calculated fields
at:
http://allenbrowne.com/casu-14.html
I have a form that has three fields.
Hubstart, Hubend and total mileage.
I want to store the total in the total mileage field by subtracting
hubstart
from hubend.
I've tried a number of things but I just can't seem to figure out
how
to
write it correctly when I select on exit as an expression in hubend.