C
Chuck
I am using Access 2000
I have a form (Prospects) with a Tab Control (Tabctl21) and some text box
controls on a Tab called "Add Prospects", Page Index =1. I'm trying to turn
Enable Property off on these controls using on Change event procedure. I cant
get the controls to change only for this tab (Im using msgbox to test). Its
happeing for all tabs. here is the code i am using:
I've tried many combinations where the ????? are including Page.count to no
avail.
Private Sub TabCtl21_Change()
Dim ctrl As Control
Dim tci As Integer
tci = Me.TabCtl21.?????????
If tci = 1 Then
MsgBox "You are on Page AP"
Else
MsgBox "You are NOT on Page AP"
End If
End Sub
Can you show me the entire code i should use.
I have a form (Prospects) with a Tab Control (Tabctl21) and some text box
controls on a Tab called "Add Prospects", Page Index =1. I'm trying to turn
Enable Property off on these controls using on Change event procedure. I cant
get the controls to change only for this tab (Im using msgbox to test). Its
happeing for all tabs. here is the code i am using:
I've tried many combinations where the ????? are including Page.count to no
avail.
Private Sub TabCtl21_Change()
Dim ctrl As Control
Dim tci As Integer
tci = Me.TabCtl21.?????????
If tci = 1 Then
MsgBox "You are on Page AP"
Else
MsgBox "You are NOT on Page AP"
End If
End Sub
Can you show me the entire code i should use.