TabStrip control

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
 
N

Naresh Nichani MVP

Hi:

Use the Value property.

This would activate second tab.

Me.TabCtl2.Value = 1

Regards,

Naresh Nichani
Microsoft Access MVP
 
W

Warrio

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
 
W

Warrio

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

MsgBox myTabStrip.Value!!
 
R

Ron Weiner

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top