[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Acess Report - compare two fields and if they are different, change the formatting of one of the fields

Posted on 2006-06-14
8
Medium Priority
?
249 Views
Last Modified: 2006-11-18
I have a report which has a few amounts in each record.  I would like to compare the amounts and if they are different, the 2nd field should change to be italicized.

How do I do this?

Thanks.
0
Comment
Question by:YLaw
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 65

Expert Comment

by:rockiroads
ID: 16904235
have u tried conditional formatting?

0
 
LVL 77

Expert Comment

by:peter57r
ID: 16904250
Hi YLaw,
Use conditional formatting on the textbox you want to change.(Right click>Conditional Formatting)
Pete
0
 
LVL 65

Expert Comment

by:rockiroads
ID: 16904268
alternative is this

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)

    If Amount1 > Amount2 Then
        Amount1.FontItalic = True
    Else
        Amount.FontItalic = False
    End If
End Sub
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
LVL 65

Expert Comment

by:rockiroads
ID: 16904282
typo in my last post, but Im sure you catch the drift
0
 

Author Comment

by:YLaw
ID: 16904313
rockiroads,

I've never used conditional formatting.  Which one would be better.  That or the detail_format?
0
 
LVL 65

Accepted Solution

by:
rockiroads earned 2000 total points
ID: 16904434
well the detail_format is easier if you don't know conditional formatting

But its always good to learn
when u go into conditional formatting (either click on control, then go to Format/Conditional formatting or right click/Conditional Formatting)

u select your conditon

Field Value is

2nd combo is greater than

and so on


0
 

Author Comment

by:YLaw
ID: 16944830
sorry not to sound really dumb...I can't find where it says conditionally formatting (Sorry it's taken so long to get back to you)
0
 

Author Comment

by:YLaw
ID: 16944850
whoops...I thought you meant the control's format tab...I got it.  Great. thanks.
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question