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]
 
Top