TabCtl Focus

D

Dave Ruhl

MS Access 2002: I want to code a 'button' to do different
things depending on which page of a tabctl currently has
focus. The Page properties don't seem to have a
HasFocus/GotFocus property that I can check. I'm used to
working with Visual Foxpro where each object has 2-3
times as many properties to work with, and I'm finding it
difficult to find the equivalents in Access. Any help
would be appreciated.
 
R

Rick Brandt

Dave Ruhl said:
MS Access 2002: I want to code a 'button' to do different
things depending on which page of a tabctl currently has
focus. The Page properties don't seem to have a
HasFocus/GotFocus property that I can check. I'm used to
working with Visual Foxpro where each object has 2-3
times as many properties to work with, and I'm finding it
difficult to find the equivalents in Access. Any help
would be appreciated.


Test the TabControl's Value property. Each TabPage has an index value (0,
1, 2, etc..). The Value of the TabControl itself corresponds to the current
TabPage index value. So...

Select Case Me!TabControlName.Value
Case 0
'do something
Case 1
'do something else
End Select
 
D

Dave Ruhl

Thanks very much! That worked great!
-----Original Message-----



Test the TabControl's Value property. Each TabPage has an index value (0,
1, 2, etc..). The Value of the TabControl itself corresponds to the current
TabPage index value. So...

Select Case Me!TabControlName.Value
Case 0
'do something
Case 1
'do something else
End Select


--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com


.
 

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