G
Guest
"You entered an expression with no value"
The code that seems to be stumbling is:
Private Sub GroupFooter4_Format(Cancel As Integer, FormatCount As Integer)
If ([CtDetails] = 1) Then
Me.Line49.Visible = False
Else: Me.Line49.Visible = True
End If
If ([ctContr] = 1 And [CtDetails] = 1) Then
Me.Text102.Visible = False
Me.CalcTrade.Visible = False
Else: Me.Text102.Visible = True And Me.CalcTrade.Visible = True
End If
End Sub
The debugger tells me that the problem line is If ([CtDetails] = 1) Then
Assuming code gets executed top to bottom, I have other subroutines above
this which seem to be having no problems with this line of code. Does it
have to do with being in GroupFooter4?
The report opens with no error when I go to it and open it from the report
file. This problem only shows up when I open the report by pushing a button
on a form (which triggers some filtering).
Can anyone help me?
I am very new to VBA programming, but this should be very simple coding.
Thanks.
The code that seems to be stumbling is:
Private Sub GroupFooter4_Format(Cancel As Integer, FormatCount As Integer)
If ([CtDetails] = 1) Then
Me.Line49.Visible = False
Else: Me.Line49.Visible = True
End If
If ([ctContr] = 1 And [CtDetails] = 1) Then
Me.Text102.Visible = False
Me.CalcTrade.Visible = False
Else: Me.Text102.Visible = True And Me.CalcTrade.Visible = True
End If
End Sub
The debugger tells me that the problem line is If ([CtDetails] = 1) Then
Assuming code gets executed top to bottom, I have other subroutines above
this which seem to be having no problems with this line of code. Does it
have to do with being in GroupFooter4?
The report opens with no error when I go to it and open it from the report
file. This problem only shows up when I open the report by pushing a button
on a form (which triggers some filtering).
Can anyone help me?
I am very new to VBA programming, but this should be very simple coding.
Thanks.