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 / Forms Programming / December 2005

Tip: Looking for answers? Try searching our database.

Requery and Navigation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
yooper_ssm - 05 Dec 2005 21:21 GMT
Background: I have a Main form frm1 which contains 2 subforms sfm1 and sfm2.
On frm1 I have a command button which opens - another form - frm2 which
allows me to add a record to the date table. The date table's data is
displayed in sfm1 on frm1.

Problem: I can do a Form!frm1.requery from the unload event of frm2 but I
can't do any form of record navigation

Question:  is there a way to navigate to the last record of the form sfm1.
Below is the code i have tried.

Forms![frmMainWorshipSchedule].[sfmServiceTimeDateNotes].SetFocus
  DoCmd.GoToRecord , , acFirst
  DoCmd.GoToRecord , , acLast
  DoCmd.GoToRecord , , acPrevious, 5
  DoCmd.GoToRecord , , acNext, 5
yooper_ssm - 05 Dec 2005 21:46 GMT
Hey I got it to work using this.

Forms![frmMainWorshipSchedule].[sfmServiceTimeDateNotes].Form.Requery
Forms![frmMainWorshipSchedule].[sfmServiceTimeDateNotes].Form.Recordset.MoveLast
Forms![frmMainWorshipSchedule].[sfmServiceTimeDateNotes].Form.Recordset.Move
-5
Forms![frmMainWorshipSchedule].[sfmServiceTimeDateNotes].Form.Recordset.Move 5
 
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.