Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Record navigation with multiple subforms

Status
Not open for further replies.

Thenolos

Technical User
Jul 15, 2004
38
Howdy,

I'm working on a new database that utilizes a good deal of subforms. Structure is like this Main Form / Subform / Sub-Subform (or whatever you call it). I have record navigation command buttons on the Subform that I would like to control the records on the Sub-Subform. The code I am using behind the command button is:

Forms![frmMain]![subMain].Form![minTodo].SetFocus
DoCmd.GoToRecord , , acLast

frmMain is the Main form
subMain is the control name for the subforom
minTodo is the control name for the sub-subform

No errors occur, but nothing happens. Any ideas guys?
 
I found that

Me![minTodo].SetFocus
DoCmd.GoToRecord , , acLast (or acNext etc...))

Works as long as I am using [subMain] as the main form as apposed to the first subform.

Still does nothing when [minTodo] is the secondary subform.
 
Nevermind, got help on another forum.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top