G
Guest
Trying to run a report I get this message and a descriptor telling me I
entered an expression that has no value. When I debug this is the code it
goes to: (the highlight is at If Me![Maint] = "yes" then)
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Dim i As Integer
If Me![Maint] = "Yes" Then
For i = 0 To Me.Controls.Count - 1
If Me.Controls(i).Tag = "Maint" Then
Me.Controls(i).Visible = True
End If
Next
Else
For i = 0 To Me.Controls.Count - 1
If Me.Controls(i).Tag = "Maint" Then
Me.Controls(i).Visible = False
End If
Next
End If
End Sub
Any thoughts??
entered an expression that has no value. When I debug this is the code it
goes to: (the highlight is at If Me![Maint] = "yes" then)
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Dim i As Integer
If Me![Maint] = "Yes" Then
For i = 0 To Me.Controls.Count - 1
If Me.Controls(i).Tag = "Maint" Then
Me.Controls(i).Visible = True
End If
Next
Else
For i = 0 To Me.Controls.Count - 1
If Me.Controls(i).Tag = "Maint" Then
Me.Controls(i).Visible = False
End If
Next
End If
End Sub
Any thoughts??