Assume your tab control is named tabMyTab
The tabs are indexed with values of 0,1,2,...
(Check the properties page for a tab to see which is which)
Let's assume that yhou want to go tot he 2nd tab (which is by default
index
= 1) In the detail section of the continous form, for the double-click
event,
put in this:
tabMyTab.Value = 1 ' change to 2nd tab
and away you go.
Now let's take it a bit further - lets say that the 2nd tab has a subform
on
it and that you want to filter so you see records associated with a field
in
the row you are slecting from page 1. That is, data item 'keyfield' on
page
1 is to be used to select all rows that have keyfield's value in column
'somefield'. Try this:
(again, in the DoubleClick event on page 1)
Me.sfrm_Page2.Filter = "[somefield] = " & Me.keyfield
tabMyTab.Value = 1
and you should see only the record(s) you want.
Lastly, if somefield is text, be sure to use quotes in the filter:
Me.sfrm_Page2.Filter = "[somefield] = """ & Me.keyfield & """"
Emily said:
I have created a form using tab control, it also has one subform. When a
record is displayed in the subform I would like my user to be able to
double
click that record and goto the second page on the tabbed controls and
bring
up another form? IS this possible?