Re: Criteria formatting

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Robin Ball (robin_at_ball-online.co.uk)
Date: 04/29/04


Date: Thu, 29 Apr 2004 15:05:51 +0100

I have used a sneaky method to do this, particularly on continuous forms
where changing the property of a control affects all records on display.

Create 2 fields one has a record source such as
=IIf([AmountDue]>=1000,[AmountDue],"")

The second field has the record source =IIf([AmountDue]<1000,[AmountDue],"")

The first field can be formatted however you like, bold, red, italic

The second field can have its own format green, normal ... whatever

Once you have checked that they work as you require (the conditions can be
as complex as you like) then make sure that the 2 controls are exactly the
same size and put one exactly on top of the other.

As with any calculated control make sure that the control name is not the
same as any of the underlying field names.

Sounds clunky but works a treat.

Regards

Robin Ball

"Max" <anonymous@discussions.microsoft.com> wrote in message
news:57df01c42d46$d5aafcd0$a401280a@phx.gbl...
> Hello,
>
> I have a report that shows outstanding issues. There is a
> field that calculates the due days of an item. I would
> like to italicize the whole record/line if the days are
> positive. (+) means the item is outstanding (-) means
> there is still time left.
>
> Any assistance on code would be greatly appreciated.
>
> Thanks
> Max



Relevant Pages

  • Re: Validating ComboBox Entries
    ... To prevent a user from entering any data, it can't be in the rowsource. ... still need to see it in the employees historical entries. ... the project name is displayed in the Combo control. ... I would have to display a Message Box or something similar to ...
    (microsoft.public.access.formscoding)
  • RE: VS2005 DataList with Nested GridView using ObjectDataSource
    ... you're wantting to display some data on the ASP.NET ... web page through the DataList control, and since those data records can ... category items in the DataList and in each DataList item, use a GridView ... | customer number in a grid (call it QUERY A). ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Synchronizing the Main form and six (6) subforms?
    ... you're going to need to control which controls/which subform to ... display. ... > shipment to the correct main record. ...
    (microsoft.public.access.formscoding)
  • Object creation
    ... I thought that I could easily copy a single Excel file from ... I've built my userform and got some of the code running. ... display the link names accordingly. ... range of 3 columns and then show that in my control. ...
    (microsoft.public.excel.programming)
  • Re: Can I load a picture form an URL into a Picturebox?
    ... :>> control is based on IE, ... I am telling the control what to display, ... Only if they know it's a web browser control, ... :>the picture data and load it into the picture box from there, ...
    (microsoft.public.vb.general.discussion)