Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / May 2007

Tip: Looking for answers? Try searching our database.

Sort Table & Pull most recent record

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kaseano - 30 May 2007 16:25 GMT
I'm using a table to transfer data between forms,

This table periodically has new records put into it, & I was wondering how
to pull the most recent record

I'm not sure what the statement would be to pull the fields from that one
record into a variable
x = [field] of that first record.

Thanks so much for any help--
John W. Vinson - 30 May 2007 19:10 GMT
>I'm using a table to transfer data between forms,

You're mistaken.

Forms *do not contain data*, any more than my office window "contains" the
Owyhee Mountain range.

Forms are just windows which *display* data, which is stored in a table, and
only in a table.

>This table periodically has new records put into it, & I was wondering how
>to pull the most recent record

Base the Form on a Query with a criterion

=DMax("[datefield]", "[tablename]")

on the date field, to select only the most recent record in the table.

>I'm not sure what the statement would be to pull the fields from that one
>record into a variable
>x = [field] of that first record.

I have no idea what you're asking here.

            John W. Vinson [MVP]
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.