Martyh
Registered User.
- Local time
- Today, 02:14
- Joined
- May 2, 2000
- Messages
- 196
Each time that I move from tab to tab I would like to make certain that the data that I have collected thus far will be maintained. thus I have developed an "Edit / View" type. The problem is that I can't seem to get the proper subform name so that I could modify the caption on a particular control within that subform.
Can anyone help !!
Here is the piece of code that I've got so far:
The event is a tab change event.
Private Sub tabProjectDetail_Change()
Dim xtxt As String
Select Case Me.TabProjectDetail
Case 0
xtxt = Me!subfrmOwner.Form '<<--- here is the problem. This is not the way to call the controls on the subform
'<<--- and I cannot figure out what it is ??
MsgBox "First page of tab " & xtxt
Case 1
MsgBox "Second page of tab"
Case 2
MsgBox "Third page of tab"
Case 3
MsgBox "Fourth page of tab"
End Select
End Sub

Can anyone help !!
Here is the piece of code that I've got so far:
The event is a tab change event.
Private Sub tabProjectDetail_Change()
Dim xtxt As String
Select Case Me.TabProjectDetail
Case 0
xtxt = Me!subfrmOwner.Form '<<--- here is the problem. This is not the way to call the controls on the subform
'<<--- and I cannot figure out what it is ??
MsgBox "First page of tab " & xtxt
Case 1
MsgBox "Second page of tab"
Case 2
MsgBox "Third page of tab"
Case 3
MsgBox "Fourth page of tab"
End Select
End Sub
