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 / August 2005

Tip: Looking for answers? Try searching our database.

How GoToRecord Next in Subform Table?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Habercom - 08 Aug 2005 21:28 GMT
My main form uses one table, my subform uses another.  They are not linked.  
How do I write code for the main form that advances to the next record in the
subform table?  Thanks.
Signature

David Habercom
University of Tennessee

Ofer - 08 Aug 2005 22:08 GMT
If you mean that you would like to have a button on the main form that when
you click on it you'll move to the next record then write the following code

Me.SubFormName.SetFocus
DoCmd.GoToRecord , , acNext

> My main form uses one table, my subform uses another.  They are not linked.  
> How do I write code for the main form that advances to the next record in the
> subform table?  Thanks.
David Habercom - 09 Aug 2005 15:31 GMT
I get an error mssg with the command
       Me.UpdateAddrsSubform.SetFocus
The error says it can't do that.  Any suggestion?  Thanks.
David

> If you mean that you would like to have a button on the main form that when
> you click on it you'll move to the next record then write the following code
>
> Me.SubFormName.SetFocus
> DoCmd.GoToRecord , , acNext
Ofer - 09 Aug 2005 18:48 GMT
Is the Enabled property of the subform set to True?

> I get an error mssg with the command
>         Me.UpdateAddrsSubform.SetFocus
[quoted text clipped - 6 lines]
> > Me.SubFormName.SetFocus
> > DoCmd.GoToRecord , , acNext
 
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.