Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conditional Formatting

Status
Not open for further replies.

tomco22

Technical User
Sep 16, 2000
74
US
Access 2000

I have a list of dates and data on my subform. I want to visually delineate the end of one week with the beginning of the next week. It would be nice to have the background shading alternate from week to week but I have decided that is probably not possible.

What I’ve settled on instead is to have a heavy line separate Saturday from Sunday. I am using a text box for my line. I have tried conditional formatting when the [Date] value = “Sat” (format set to “ddd”). I have also tried conditional formatting when the [Date] value = “7” (format set to “w”). Neither works. I assume neither works because the underlying control source is “Short Date” rather than string or integer. Neither Cstr([Date]) nor Cint([Date]) works either. Is there any way to overcome this issue?


Tom
MCSD
I Nab Terrorists
 
I'm not entirely sure of locale, could be you ned testing for 1, 6 or 7, use expression is with your dateexpression, and an expression like this?

[tt]weekday([yourdatefield])=7[/tt]

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top