P
Patrick
HI!!
I'm using the 'detail section' of my 'Warranty' report to
check if my expiration date is issued.
this is the code I'm using:
*******************************
On Error Resume Next
CurDate = Date
d = DateExp.Value
result = DateDiff("m", d, CurDate)
If result >= 3 Then
' backColor is changed to gray.
DateExp.BackColor = 12632256
Else
' hides the one not coresponding to the if.
desc1.Visible = False
NbrYrs1.Visible = False
DateExp.Visible = False
Exp1 = True
End If
**************************************
This code is repeated 9 more times.
And each time, if the result is not >=3 I asign
a boolean(Exp1 to exp10).
What I would like to do is if all my Exp 1 to 10 are TRUE
then I would like to skip that record and go to the next
one without having-it printed.I don't want him to show on
report.
Right know, if there all egual to TRUE it still prints
part of the information, but I don't realy need-it.
Can anyone help me make sence of this Please!
Patrick....
I'm using the 'detail section' of my 'Warranty' report to
check if my expiration date is issued.
this is the code I'm using:
*******************************
On Error Resume Next
CurDate = Date
d = DateExp.Value
result = DateDiff("m", d, CurDate)
If result >= 3 Then
' backColor is changed to gray.
DateExp.BackColor = 12632256
Else
' hides the one not coresponding to the if.
desc1.Visible = False
NbrYrs1.Visible = False
DateExp.Visible = False
Exp1 = True
End If
**************************************
This code is repeated 9 more times.
And each time, if the result is not >=3 I asign
a boolean(Exp1 to exp10).
What I would like to do is if all my Exp 1 to 10 are TRUE
then I would like to skip that record and go to the next
one without having-it printed.I don't want him to show on
report.
Right know, if there all egual to TRUE it still prints
part of the information, but I don't realy need-it.
Can anyone help me make sence of this Please!
Patrick....