to show only last date from a table

M

Mr. G.

I have a table for employee vacation dates. How can i get a text box in a
form to show only the last vacation date?
 
J

John W. Vinson

I have a table for employee vacation dates. How can i get a text box in a
form to show only the last vacation date?

Set its control source to

=DMax("[vacationdate]", "[tablename]", "[employeeID] = " & [EmployeeID])

using your own field and table names of course.

John W. Vinson [MVP]
 
M

Mr. G.

Thanks
--
Mr. G.


John W. Vinson said:
I have a table for employee vacation dates. How can i get a text box in a
form to show only the last vacation date?

Set its control source to

=DMax("[vacationdate]", "[tablename]", "[employeeID] = " & [EmployeeID])

using your own field and table names of course.

John W. Vinson [MVP]
 

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