BarryMK
4 strings are enough
- Local time
- Today, 10:59
- Joined
- Oct 15, 2002
- Messages
- 1,349
The first piece of code works fine on my main form but when I replace it with the second code I get "Compile error - method or data member not found" breaking on '.visible'
What's really frustrating is that both codes work either separately or combined together on a brand new form with just the listed controls on it.
Any ideas people?
'Code 1
Private Sub Form_Current()
If IsNull(ActionDesc) Then
Me.lblAction.Visible = True
Else
Me.lblAction.Visible = False
End If
End Sub
'Code 2
Private Sub Combo45_AfterUpdate()
If IsNull(IncidentIDold) Then
Me.IncidentIDold.Visible = False
Me.IncidentID.Visible = True
Else
Me.IncidentID.Visible = False
End If
If Not IsNull(IncidentIDold) Then
Me.IncidentIDold.Visible = True
Else
Me.IncidentIDold.Visible = False
End If
What's really frustrating is that both codes work either separately or combined together on a brand new form with just the listed controls on it.
Any ideas people?
'Code 1
Private Sub Form_Current()
If IsNull(ActionDesc) Then
Me.lblAction.Visible = True
Else
Me.lblAction.Visible = False
End If
End Sub
'Code 2
Private Sub Combo45_AfterUpdate()
If IsNull(IncidentIDold) Then
Me.IncidentIDold.Visible = False
Me.IncidentID.Visible = True
Else
Me.IncidentID.Visible = False
End If
If Not IsNull(IncidentIDold) Then
Me.IncidentIDold.Visible = True
Else
Me.IncidentIDold.Visible = False
End If