Retrieving value in last record

J

Joan

How does one retrieve the value of a particular field of the last record in
a table in VBA? Any help with this will be appreciated.

Joan
 
P

PC Datasheet

If your form is based on a table or a query that includes the table ----

Create an unbound textbox on your form and put the following expression in its
Control Source property:

=Max([NameOfTheField])


--
PC Datasheet
A Resource for Access, Excel and Word Applications
[email protected]
www.pcdatasheet.com

· Design and basic development for new applications
· Additions, Modifications and "Fixes" for existing applications
· Mentoring for do-it-yourselfers who want guidance
· Complete application design and development
· Applications Using Palm Pilot To Collect Data And
Synchronize The Data Back To Access Or Excel
 
Top