TabCtl Focus

  • Thread starter Thread starter Dave Ruhl
  • Start date Start date
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.
 
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
 
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


.
 
Back
Top