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 / May 2008

Tip: Looking for answers? Try searching our database.

goto record

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Florin - 28 May 2008 13:20 GMT
Hi,

In a form I have a command button for a change one record in a subform:

"Me.subform_name.Requery"  -> is ok

After that, I use
"DoCmd.GoToRecord , "subform_name", acFirst"

for go to the first record in that subform, but I get an error
"Run time error 2489
 The object 'subform_name' isn't open"

Where is the problem?

Thank
Florin
Klatuu - 28 May 2008 15:04 GMT
You have to set the focus to the subform control name.

Me.SubformControlName.Setfocus
DoCmd.GoToRecord , , acFirst
Signature

Dave Hargis, Microsoft Access MVP

> Hi,
>
[quoted text clipped - 13 lines]
> Thank
> Florin
Florin - 28 May 2008 15:52 GMT
Thanks, it work!

> You have to set the focus to the subform control name.
>
[quoted text clipped - 18 lines]
>> Thank
>> Florin
 
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.