Charlotte Foust
cfoust at infostatsystems.com
Thu Apr 3 10:30:34 CST 2003
You don't need to reference the tab page at all. It is an optical illusion that shows or hides controls as the value of the tab control changes. You can just reference the control as a member of the form's controls collection. Charlotte Foust -----Original Message----- From: Seth Galitzer [mailto:sgsax at ksu.edu] Sent: Thursday, April 03, 2003 8:14 AM To: accessd Subject: Re: [AccessD] Reference a textbox on a tab control Julie, A tab control has a Pages collection. Each tab is a Page in that collection. So to reference a textbox on the first tab you need something like this: strText = Me!tabMyTabControl.Pages(0).txtMyText Note: I'm spewing this off the cuff and may not be entirely accurate. I don't remember if the Pages collection uses a 0- or 1-based index, and you may need to reference the Page's Controls collection to get to the textbox. Good luck! Seth On Thu, 2003-04-03 at 09:55, Julie Reardon-Taylor wrote: > > Hi, > > I'm trying to reference the contents of a textbox on the first tab of > a tab > control on a form. Can't seem to get the syntax right. Can someone help me? > > > Julie Reardon-Taylor > PRO-SOFT OF NY, INC. > www.pro-soft.net > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com