DLookup

  • Thread starter Thread starter Chuck305
  • Start date Start date
C

Chuck305

Hi

I have the following fields in a table “TrainNumberâ€, “InspDateâ€,
“CurrentInspHours†, “LastInspDate†and “LastInspHoursâ€

I would like to populate LastInspDate & LastInspHours on the data entry form
automatically I believe DLookup is what I need to use but I don’t have a clue
of how to code it.

Any help with this would greatly appreciated.
 
Hi Chuck,

All of the domain aggregrate functions (DLookup, DMin, DMax, etc.) are used
to retrieve data from tables, not to write data. You can use the
Form_BeforeUpdate procedure in VBA code to update the LastInspDate field.


Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
__________________________________________
 

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

Similar Threads

Date lookup 1
DLookup and Nz 0
Dlookup error 4
Problem with my Dlookup 5
Function Start and End 8
dlookup 2
DLookup debacle 4
DLookUp Format 4

Back
Top