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 / Modules / DAO / VBA / December 2006

Tip: Looking for answers? Try searching our database.

How to know last opened form ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
javiernews - 10 Dec 2006 15:35 GMT
Is is possible to know which was the last opened form or report ??

Thank you
Javier
Alex Dybenko - 10 Dec 2006 16:15 GMT
Hi,
perhaps this can work:
forms(forms.Count-1).Name

Signature

Best regards,
___________
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com

> Is is possible to know which was the last opened form or report ??
>
> Thank you
> Javier
Arvin Meyer [MVP] - 10 Dec 2006 16:51 GMT
Alex is correct, if the form or report is still open, but you need to add a
table with a timestamp field that each form and report writes to upon
opening to know which is the last opened, if the last one is closed after it
is opened. Then just query the table for the highest value.

Select TOP 1 MyField From MyTable Order By MyField Desc;
Signature

Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com

> Is is possible to know which was the last opened form or report ??
>
> Thank you
> Javier
javiernews - 10 Dec 2006 18:04 GMT
Thank You      Alex & Arvin  !!

I got it !!

Javier
 
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.