Results 1 to 5 of 5
  1. #1
    bellevue is offline Advanced Beginner
    Windows XP Access 2000
    Join Date
    Apr 2012
    Posts
    61

    Conditional Formatting

    I have a form and want to use the Access 2000 built-in conditional formatting facility as I don't really understand VBA.

    I have created a set of conditions (see below):

    Click image for larger version. 

Name:	ConditionalFormatting.JPG 
Views:	13 
Size:	57.4 KB 
ID:	7680

    These all work fine; however, I work with Dutch and French as well and want to change the conditions to include the equivalent text in French or Dutch so that it recognises those languages as well as English. To explain what I mean, here's an example (for Condition 1) of what I'm trying to do:

    [Accommodation]="Camping Pitch (Tent)" Or "Emplacement (Tente)" Or "Kampeerplaats (Tent)"

    Will I be able to do this ?



    Thanks

  2. #2
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    The correct syntax would be

    Code:
    [Accommodation]= "Camping Pitch (Tent)" Or [Accommodation]= "Emplacement (Tente)" Or [Accommodation]= "Kampeerplaats (Tent)"
    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,743
    One thought that comes to mind is a change in design,
    suppose you had a table of Accommodation Types and each type had an English, French, Dutch..... description or name
    Code:
    TypeId           EngDesc               FrenchDesc               DutchDesc
    1        "Camping Pitch (Tent)" "Emplacement (Tente)" "Kampeerplaats (Tent)"
    You could set this up with a langCd as well. This just for discussion.

    This is quite common where multilanguages are involved. Of course it depends on how many of these values you have as to its applicability.
    It does offer the ability to add more languages.

    Just a thought for consideration. It does have implications on your design and existing code.

    In your comparison you could check if accommodation.typeId =1

  4. #4
    bellevue is offline Advanced Beginner
    Windows XP Access 2000
    Join Date
    Apr 2012
    Posts
    61
    Thank you so much "Missinglinq"; sometimes the obvious stares you in the face doesn't it !

    Bless you

  5. #5
    bellevue is offline Advanced Beginner
    Windows XP Access 2000
    Join Date
    Apr 2012
    Posts
    61
    Thanks also to "orange", a very interesting thought process...shall give that a ponder !

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

Similar Threads

  1. Conditional Formatting
    By schwabe in forum Reports
    Replies: 2
    Last Post: 02-01-2012, 10:28 AM
  2. Conditional Formatting
    By ccordner in forum Reports
    Replies: 6
    Last Post: 01-09-2012, 04:12 PM
  3. Conditional Formatting
    By pkstormy in forum Code Repository
    Replies: 0
    Last Post: 08-30-2010, 09:31 PM
  4. Conditional Formatting
    By DanOzDirect in forum Reports
    Replies: 3
    Last Post: 07-21-2010, 08:49 PM
  5. Conditional Formatting
    By cevatyildiz in forum Forms
    Replies: 8
    Last Post: 04-30-2010, 12:01 PM

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