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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to reference forms/subforms on a tab control 3

Status
Not open for further replies.

dpav29

Technical User
Joined
Aug 3, 2001
Messages
155
Location
US
My tab control is on the main form, then there's the tab "page" then a form and a subform. I can't figure out what is necessary to reference the subform for a requery.

Is it Forms!MainForm!tabcontrol!page!form!subform Seems like a lot, and i've tried several variations with no luck. . . hoping it is something easy!

Thanks!
 
When in the main form use the Expression builder to discover how to reference a control on the subform.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Thanks. . . .great tip!
 
can you tell me if you have to do anything different if you are referencing a combo box? I am trying to create a flow for tabbing from the main form to each subform on a tab control with pages. I have my code, but it says

"An expression you entered is the wrong data type for one of the arguments."
This is what I have:

DoCmd.GoToControl Forms![frmCandidateEntry]![frmPhoneEntry].Form![cmbPhoneTypeID]

I also tried a Forms![frmCandidateEntry]![frmPhoneEntry].Form![cmbPhoneTypeID].setfocus but nothing happens. The tab just goes back to the first field of the subform I am on.

This is being referenced in the onexit code of a zip field, on an address subform on a tab control. The phone subform is on the same page of the tabcontrol.

I have more to do after that, but I am trying to get this code worked out so that I can create a navigational tabbing flow to the form(s).

Thanks if you can help!

misscrf

It is never too late to become what you could have been ~ George Eliot
 
sorry I put this in reply to the wrong post. I will repost in the right place.

misscrf

It is never too late to become what you could have been ~ George Eliot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top