crisis2007
Technical User
I can not find the solution to this problem I am having. I have two text boxes (txt1 and txt2). They are on a main form to display the months of the respective dates that are called up from two subforms in the main form. The control source to
txt1 is: =[SF_TimeTypeD1].[Form]![ESDate]
txt2 is: =[SF_TimeTypeD7].[Form]![ESDate]
I have formated both textboxes to only show their respective months, not the entire date.
This works fine and both show the correct data. However I want txt2 to not be visible if they both show the same month.
I can't seem to find a solution. I have tried this in the OnOpen event (and tried in the OnCurrent event)of the main form but it does not work:
Private Sub Form_Open()
If (Me.Text1.Value = Me.txt2.Value) = True Then
Me.Text2.Visible = False
End If
End Sub
txt1 is: =[SF_TimeTypeD1].[Form]![ESDate]
txt2 is: =[SF_TimeTypeD7].[Form]![ESDate]
I have formated both textboxes to only show their respective months, not the entire date.
This works fine and both show the correct data. However I want txt2 to not be visible if they both show the same month.
I can't seem to find a solution. I have tried this in the OnOpen event (and tried in the OnCurrent event)of the main form but it does not work:
Private Sub Form_Open()
If (Me.Text1.Value = Me.txt2.Value) = True Then
Me.Text2.Visible = False
End If
End Sub