Results 1 to 5 of 5
  1. #1
    schwabe is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2012
    Location
    San Francisco Bay Area
    Posts
    50

    Format based on input

    Hello all,



    I'm working on a product list and I would like to add the formatting of a record set in a form, if the product is no more available.

    Some more details:
    I have a table tabProdcuts and it conatins the following fields:
    txtProductName, lnkFunction, logAvailable.

    The column logAvailable contains boolean variables with "TRUE" = product available and "FALSE" product not available.

    I'd like to color the products red, if the product is not available. In this form, the product is chosen by a combo box.

    How do I do that?

    Thanks,
    Benjamin

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    Maybe this could be done with Conditional Formatting
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    schwabe is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2012
    Location
    San Francisco Bay Area
    Posts
    50
    Hi,

    thanks for your reply.
    I am not using the field itself for the formatting. So, I guess I will have to do some coding...

    Benjamin

  4. #4
    schwabe is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2012
    Location
    San Francisco Bay Area
    Posts
    50
    Okay, I just found it, it works with conditional formatting.
    However, I'd like to color the whole line in red. How do I do that?

  5. #5
    schwabe is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2012
    Location
    San Francisco Bay Area
    Posts
    50
    issue solved, I had to use the same expression for all fields in the form. Thanks

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

Similar Threads

  1. View Data based on Form Input?
    By 0REDSOX7 in forum Forms
    Replies: 7
    Last Post: 11-29-2011, 10:25 AM
  2. Run a query based on an input from a form
    By apoorv in forum Queries
    Replies: 4
    Last Post: 07-11-2011, 01:39 PM
  3. Input Value based on another textbox value
    By dude19 in forum Access
    Replies: 2
    Last Post: 06-30-2011, 03:48 PM
  4. Set Current Record based on Primary Key Input
    By andersonEE in forum Forms
    Replies: 2
    Last Post: 06-24-2011, 08:23 AM
  5. Custom Data input mask or format?
    By RiverAnimal in forum Database Design
    Replies: 2
    Last Post: 12-06-2010, 09:58 AM

Tags for this Thread

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