[AccessD] Determine current tab (x-posted)

Kevin Waddle thewaddles at sbcglobal.net
Mon Jul 28 20:38:55 CDT 2003


David,
The property for the Tab is value...
The first tab is 0, then 1...
Me.TabCtrl1.Value = 0 will put you on the first tab

HTH,
Kevin

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson
Sent: Sunday, July 27, 2003 3:55 PM
To: accessd at databaseadvisors.com; ACCESS-L at PEACH.EASE.LSOFT.COM
Subject: [AccessD] Determine current tab (x-posted)


I have a form with a tab control which has 3 tabs.  The third tab has a 
subform with a tab control on it and 2 tabs.  The second tab of the
subform 
has another subform with a tab control having 4 tabs.

On the main form I have a search box.  Currently if this is used the
focus 
ends up with the first tab on the main form (it uses this field to
search 
on using DoCmd.FindRecord).  My users want to be able to search but end
up 
with the focus on the particular tab they were in before the search.

My problem is that I can't find a property that says what is the current

tab.  I can find the current field but unless I know the tab I can't
just 
set the focus to that field.  Any hints?

Regards

David Emerson
DALYN Software Ltd
25b Cunliffe St, Johnsonville
Wellington, New Zealand
Ph/Fax (877) 456-1205 

_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com



More information about the AccessD mailing list