Glad we're getting somewhere!
The circular refereance means that we have something like...
Item A depends on Item B which itself depends on Item A
Let's Recap the controls...
Beginning Mileage
=dlookup("Nz([Beginning
Mileage],0)+Nz([AR],0)+Nz([LA],0)+Nz([TX],0)+Nz([MS],0)+Nz([OK],0)+Nz([Other],0)","[Daily
Log]","Date = #" & Format(DMax("Date","Daily Log"),'mm/dd/yyyy') & "#")
You also have controls for the individual mileages (AR, LA etc) which should
have NO control source - they aren't dependent on anything and are for the
user to enter freely.
Then you have Total Daily Mileage...
=Nz([AR],0)+Nz([LA],0)+Nz([TX],0)+Nz([MS],0)+Nz([OK],0)+Nz([Other],0)
And Ending Mileage, which should be...
=Nz([AR],0)+Nz([LA],0)+Nz([TX],0)+Nz([MS],0)+Nz([OK],0)+Nz([Other],0)+Nz([Beginning Mileage],0)
And the controls with a source get their data from...
Beginning Mileage gets data from the TABLE
Total Daily Mileage gets its data from the FORM
Ending Mileage gets its data from the FORM
If all the above checks out and there is still a problem...
Is your form using the table [Daily Log] as its source?
It could be that our calculated beginning mileage is using itself in the
calculation so we will need to restrict it to the max(date) before itself. So
we need to make the "Beginning Mileage" control yet more complicated...
=dlookup("Nz([Beginning
Mileage],0)+Nz([AR],0)+Nz([LA],0)+Nz([TX],0)+Nz([MS],0)+Nz([OK],0)+Nz([Other],0)","[Daily
Log]","Date = #" & Format(DMax("Date","Daily Log","Date < #" &
Format(Me.Date,'mm/dd/yyyy') & "#"),'mm/dd/yyyy') & "#")
Hope this gets you another step forward - it's tricky from here because
there are always several ways of doing the same thing & I don't know your
particular design.
If you still have problems you could email me the database with your
questions on the understanding I can't guarantee my response times! If you do
this, save the db as Access 2003 or earlier.
My email address is andyhull_w3b@a1REMOVE_THIS_BITsites.co.uk
(Obviously, take out the REMOVE_THIS_BIT if you do email me)
Regards
Andy Hull
Thanks for the fast reply... Were getting somewhere. Now I dont get the error
and the number comes up but it says "Circular Reference"??
[quoted text clipped - 23 lines]