Results 1 to 7 of 7
  1. #1
    mikichi is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Oct 2013
    Posts
    45

    question| Painting Rows

    hi,


    i have a query that filter all that dates that biger from today:
    ">Date()"
    on this query i build report.
    i want that all the Date that start in the next week painting in Green.
    how i can do that?
    thank you,
    miki

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    First, in your query, build an expression to check to see if the date being returned is the next week number (when compared to the current date).
    That expression will look something like:
    Code:
    WeekNumCheck: Format([DateField],"ww")=Format(Date(),"ww")+1
    Now, you can use this field in Conditional Formatting on your report (Google "Access report conditional formatting if you do not know how to do this).
    Basically, add your Date field and WeekNumCheck fields to your report (you can elect to make the WeekNumCheck field not visible, if you like).
    Then, apply the Conditional Formatting to your Date field. You will want to use the "Expression is" option, and enter the following formula:
    Code:
    [WeekNumCheck]=True
    and then choose your formatting colors.

  3. #3
    mikichi is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Oct 2013
    Posts
    45
    hi,
    first sorry on the delay!!

    its working good!
    but i have a two problem now.
    1.i want that Conditional Formatting paint all the record and not only the field.
    2.when i start automatic design its canceld the Conditional Formatting.
    tnak youuu!!!
    miki

  4. #4
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    but i have a two problem now.
    1.i want that Conditional Formatting paint all the record and not only the field.
    2.when i start automatic design its canceld the Conditional Formatting.
    1. Apply the same conditional formatting to all the other fields in that record if you want them highlighted too.
    2. Not sure what you mean by "automatic design".

  5. #5
    mikichi is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Oct 2013
    Posts
    45
    Quote Originally Posted by JoeM View Post
    1. Apply the same conditional formatting to all the other fields in that record if you want them highlighted too.
    2. Not sure what you mean by "automatic design".
    1.but i cant :S every field can change only himself with conditional formatting no?
    2.i mean to this :AutoFormats
    http://office.microsoft.com/en-us/ac...004.aspx#BMbm1
    thank you

  6. #6
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    1.but i cant :S every field can change only himself with conditional formatting no?
    Conditional Formatting can only change the field that the formula is being applied to, but the formula being used can look at the value of other fields! It is not relegated to only looking at its own value.

    For example, if you have three fields named PatientName, Age, and VisitDate, and you wanted to highlight all three fields if your PatientName is "Bob", then you would just got to each field (one at a time, and set up the Conditional Formatting this way):
    1. Choose the "Expression Is" option (instead of the "Field Value Is" option
    2. Enter this expression: [PatientName]="Bob"
    3. Choose your formatting option

    I have never used the AutoFormats option before (not even sure if Access 2007 has it), but if you read through that article you posted, it looks like you would need to create your own AutoFormat (and not use one of the pre-built ones) if you wanted to incorporate conditional formatting.

  7. #7
    mikichi is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Oct 2013
    Posts
    45
    thank you very much!!!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 12
    Last Post: 07-31-2013, 01:29 PM
  2. Sum Of Rows
    By Arsalan in forum Database Design
    Replies: 1
    Last Post: 01-15-2013, 07:22 AM
  3. Replies: 4
    Last Post: 08-25-2012, 07:19 PM
  4. Replies: 0
    Last Post: 02-09-2012, 05:43 PM
  5. Replies: 2
    Last Post: 08-28-2011, 06:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums