TabStrip control

  • Thread starter Thread starter Warrio
  • Start date Start date
W

Warrio

Hello!

How is it possible to modify by code the current tab index on a tabstrip
control?

to see the current tab selected, I use
myTabStrip.SelectedItem.Index
but this property is read only.

Thanks for any suggestion
 
Hi:

Use the Value property.

This would activate second tab.

Me.TabCtl2.Value = 1

Regards,

Naresh Nichani
Microsoft Access MVP
 
Hi Naresh, thanks for your quick response,

but the tab I'm using is an ActiveX called TabStrip which behaves
differently than the regular tab control..
and when I try

myTabStrip.Value = 1

Access displays the following error
"The setting you entered isn't valid for this property"

Thanks again
 
It's strange, but the same statment works in perfectly in Excel, but in
Access
I can't even write

MsgBox myTabStrip.Value!!
 
Warrio

Try...

myTabStrip.Object.Value = 1

Sometimes Access gets confused with properties in ActiveX objects that have
the same name as standard Access objects.

Ron W
 
Back
Top