Results 1 to 3 of 3
  1. #1
    ROB is offline Novice
    Windows Vista Access 2007
    Join Date
    Jun 2010
    Posts
    7

    Expression trouble

    How would the expression read to say If the field [COVERED BY] contained the exact same name as the field [OPERATOR NAME] to display the word "NO" in the field [SPARE] The field operator name is my form control. The other problem is that the field spare is controlled to display yes and no by start and end days attached to the operator name. How would I attach the start and end dates to remove the name from covered by at the same time they expire on operator name.

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    "start and end days attached to the operator name"
    that statement needs some clarity as to what you mean by this...

    "How would I attach the start and end dates to remove the name from covered"
    another statement that is very difficult to understand

    you are in a form? or a query? a simple example would probably help...

  3. #3
    ROB is offline Novice
    Windows Vista Access 2007
    Join Date
    Jun 2010
    Posts
    7
    SPARE: IIf([Available]=0,"YES!",IIf([C-SITE START DATE]>Date() Or [C-SITE END DATE]<Date(),"YES","NO"))
    This is the expression working at the moment in a query. I wish to add that when the field called [covered by] has an employee name contained that matches the name in my [operator name] field to display no in the field called[spare] by the name in [COVERED BY] But the yes and no controls are only operating in the strat and end dates to the field spare

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

Similar Threads

  1. Trouble with LookUp
    By glinch in forum Database Design
    Replies: 6
    Last Post: 03-25-2010, 08:54 AM
  2. Trouble with Query
    By jbarrum in forum Access
    Replies: 1
    Last Post: 01-13-2010, 04:10 PM
  3. VB code in Access '07 trouble
    By Pauldk in forum Reports
    Replies: 2
    Last Post: 02-18-2009, 03:59 PM
  4. Code Trouble?
    By briancb2004 in forum Access
    Replies: 0
    Last Post: 10-08-2008, 04:47 PM
  5. Hi ! Im having time trouble
    By gayano in forum Access
    Replies: 0
    Last Post: 06-28-2007, 12:10 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