PC Review


Reply
Thread Tools Rate Thread

Button and tab

 
 
Jay
Guest
Posts: n/a
 
      29th Jul 2008
Thanks in advance

A form with a 'Delete' button has two tabs, 'tab1' and 'tab2'.

(Goal)
In the tab2, 'Delete' button is greyed out and disabled.
In the tab1, 'Delete' button is enabled.


 
Reply With Quote
 
 
 
 
John W. Vinson/MVP
Guest
Posts: n/a
 
      29th Jul 2008
On Mon, 28 Jul 2008 18:02:00 -0700, Jay
<(E-Mail Removed)> wrote:

>Thanks in advance
>
>A form with a 'Delete' button has two tabs, 'tab1' and 'tab2'.
>
>(Goal)
>In the tab2, 'Delete' button is greyed out and disabled.
>In the tab1, 'Delete' button is enabled.
>


You need two buttons, one on each tab page.

--

John W. Vinson/MVP
 
Reply With Quote
 
 
 
 
Krzysztof Pozorek [MVP]
Guest
Posts: n/a
 
      29th Jul 2008
(...)
>>A form with a 'Delete' button has two tabs, 'tab1' and 'tab2'.
>>
>>(Goal)
>>In the tab2, 'Delete' button is greyed out and disabled.
>>In the tab1, 'Delete' button is enabled.
>>

>
> You need two buttons, one on each tab page.
>


Or use change event of tab control:

Private Sub ctrTab_Change()
Me!cmdDelete.Enabled = (Me!ctrTab = 0)
End Sub

K.P.
www.access.vis.pl


 
Reply With Quote
 
Jay
Guest
Posts: n/a
 
      30th Jul 2008
Thank you, K.P.

I am new to VBA area and I may not understand your idea.

When I open a Tab page, it has only five events: Click, Double Click, Mouse
Up,Mouse Down, Mouse Move.

Thank again.


"Krzysztof Pozorek [MVP]" wrote:

> (...)
> >>A form with a 'Delete' button has two tabs, 'tab1' and 'tab2'.
> >>
> >>(Goal)
> >>In the tab2, 'Delete' button is greyed out and disabled.
> >>In the tab1, 'Delete' button is enabled.
> >>

> >
> > You need two buttons, one on each tab page.
> >

>
> Or use change event of tab control:
>
> Private Sub ctrTab_Change()
> Me!cmdDelete.Enabled = (Me!ctrTab = 0)
> End Sub
>
> K.P.
> www.access.vis.pl
>
>
>

 
Reply With Quote
 
Krzysztof Pozorek [MVP]
Guest
Posts: n/a
 
      30th Jul 2008
Yes, Tab page has only this five events, but Tab control has nine events:
Change, Click, DblClick, KeyDown, KeyPress, KeyUp, MouseDown, MouseMove,
MouseUp.

Use Change event of Tab control.

K.P.


> I am new to VBA area and I may not understand your idea.
>
> When I open a Tab page, it has only five events: Click, Double Click,
> Mouse
> Up,Mouse Down, Mouse Move.
>
> Thank again.
>
>
> "Krzysztof Pozorek [MVP]" wrote:
>
>> (...)
>> >>A form with a 'Delete' button has two tabs, 'tab1' and 'tab2'.
>> >>
>> >>(Goal)
>> >>In the tab2, 'Delete' button is greyed out and disabled.
>> >>In the tab1, 'Delete' button is enabled.
>> >>
>> >
>> > You need two buttons, one on each tab page.
>> >

>>
>> Or use change event of tab control:
>>
>> Private Sub ctrTab_Change()
>> Me!cmdDelete.Enabled = (Me!ctrTab = 0)
>> End Sub
>>
>> K.P.
>> www.access.vis.pl
>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
attempting to format a color pattern in tab 3, based tab 2 and tab mturboman Microsoft Excel Misc 5 24th Feb 2010 10:10 AM
I want idMso for "Mailing" Tab button to add this button in custom ribbon tab kjpune@gmail.com Microsoft Word Document Management 0 6th Aug 2007 06:40 AM
I want idMso for "Mailing" Tab button to add this button in custom ribbon tab kjpune@gmail.com Microsoft Word New Users 0 3rd Aug 2007 03:47 PM
SendKeys to emulate ALT+TAB, TAB, TAB =?Utf-8?B?RWRtdW5k?= Microsoft Excel Programming 1 13th Oct 2006 04:19 AM
Word 2003. Klick a Tab on the Tab-bar. Tab is 0.3 cm out. Why ? =?Utf-8?B?Vy5ILiBTdGF2ZXJtYW4=?= Microsoft Word Document Management 1 9th Mar 2006 01:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:06 AM.