I have a mainform called [order list] which I have added two tab pages
Main form =Order List
Tab Control =TabControl1
Page 1 = ViewOrderTab / Order Summary Subform
page 2= OrderTab / Order Details Subform
I basically want to be able to double click on Order ID in subform on page 1 and open Page 2 and filter to the order ID selected. I figured if I could get it to open the page I can then filter it.
But despite best efforts it's not allowing me to setfocus to the page.
I have tried following with errors
me.TabControl1=1 [method or data member not found]
me.parent.TabControl1=1 [method 'parent' of object '_form_Order Summary Subform
me.Tabcontrol1.value=1 [same as 1]
me.parent.Tabcontrol.value=1 [same as 2]
me.TabControl1.ordertab.setfocus [same as 1]
me.ordertab.setfocus [same as 1]
forms![order list] variants of the above [Method 'item' of object 'forms' failed]
also tried with pages index but so far nothing works
It's strange that everywhere these commands are being referenced but I get errors. Can somebody point me in the right direction to get this to work