Setting Tab Style in VBA

M

Mark A. Sam

I need to set the Tab Styles in VBA, but don't know how to address the value
of the property. According to help, there are constants,

vbTabs, vbButtons, and vbNone.

These don't work and don't return a value in the immediate window:

?vbNone

I tried

[TabCtl23].Style = acNone

and got errors.

I am working with A2k but also tried it on Access 2002.

Thanks for any help.
 
C

Cheryl Fischer

VBA Help on the Style property in Access 2002 offers no constants that I can
find. The example found there uses the numeric settings.

' Default (tabs)
[TabCtl23].Style = 0

' Buttons
[TabCtl23].Style = 1

'None
[TabCtl23].Style = 2


hth,
 
M

Mark A. Sam

Cheryl,

That's right. I found the description on A2k, hitting the F1 key while on
the Style property of the tab control. I can't paste it for you becuase I
am using A2K via a client's terminal server.

After checking the Style setting on A2002, I see 'that' help displays it
correctly. It must something with A2k help which is lacking (well so it
Access 2002 help...lol).

God Bless,

Mark



Cheryl Fischer said:
VBA Help on the Style property in Access 2002 offers no constants that I can
find. The example found there uses the numeric settings.

' Default (tabs)
[TabCtl23].Style = 0

' Buttons
[TabCtl23].Style = 1

'None
[TabCtl23].Style = 2


hth,
--
Cheryl Fischer
Law/Sys Associates
Houston, TX

Mark A. Sam said:
I need to set the Tab Styles in VBA, but don't know how to address the value
of the property. According to help, there are constants,

vbTabs, vbButtons, and vbNone.

These don't work and don't return a value in the immediate window:

?vbNone

I tried

[TabCtl23].Style = acNone

and got errors.

I am working with A2k but also tried it on Access 2002.

Thanks for any help.
 

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