Display query result in a form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have form where 2 of the fields are "Name" and "Date of transaction".
Every time I enter a 'Name' in a new record, I want a pop up, or 3rd field,
to show the last 'Date of transaction' for that 'Name'. Thanks
 
Use DMax in the control source of the third field

=Nz(Dmax("[DateField]","[TableName]","[NameFieldnameInTable] = '" &
[NameFieldNameInForm] & "'"),"")
 

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

Back
Top