carry data forward to a new record

T

Trevor T

Hope someone will be able to help me in some way.

I am designing a vehicle log book and maintenance type data base. This
consists of a daily logging of distance traveled as well as re-fueling values
etc etc. Each day is input as a new record on my form. What I want is to
automatically have the previous days " End Mileage" reading being brought
forward to the "Start Mileage" of the next record. Is this possible?

Regards,
 
F

Falty

You could use an unbound combo box which has its rowsource set to a find the
Max value for milage for that particular car, then at some point you would
have to pull that value across into the bound field e.g. StartMilage

The rowsource might look something like

SELECT Max(tblCarLog.EndMilage) AS FROM tblCarLog;

You can open it in the query builder to make any modifications
 
K

Klatuu

Use the Form After Update event to set the Default value of the controls to
the current value of the controls.

Me.txtStartMilage.DefaultValue = Me.txtEndMilage
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top