D
Datalore
Hi all, hope all goes well.
I have a series of Text Boxes in a group Footer of a Report, from D1 to D31,
representings days of a month.
For the Month of August, say, I would like to change the BackColor of the
text boxes to light grey (gray?), where the Day is either Sat/Sun.
I am trying to do this in a loop - On the report, in the footer section, I
am right-clicking and selecting Build Event:
' eom is calculated to be the last day of a month - the month supplied from
a query as a parameter
For i = 1 to eom ' for August this will be 31
'pseudocode:
If Day(i & "/" & [QueryMonth] & "/2005")= Sat OR Sun Then
Me.("D"&i).BackColor = colorNo ' a number representing the
colour grey
Next i
Hope you giuys can help!
I have a series of Text Boxes in a group Footer of a Report, from D1 to D31,
representings days of a month.
For the Month of August, say, I would like to change the BackColor of the
text boxes to light grey (gray?), where the Day is either Sat/Sun.
I am trying to do this in a loop - On the report, in the footer section, I
am right-clicking and selecting Build Event:
' eom is calculated to be the last day of a month - the month supplied from
a query as a parameter
For i = 1 to eom ' for August this will be 31
'pseudocode:
If Day(i & "/" & [QueryMonth] & "/2005")= Sat OR Sun Then
Me.("D"&i).BackColor = colorNo ' a number representing the
colour grey
Next i
Hope you giuys can help!