Results 1 to 2 of 2
  1. #1
    ldybugs4me is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2013
    Posts
    5

    Red face Auto Fill a field? Access 2007


    I am tracking 5 training dates. Four of which need to be three years or younger to be valid, the other must be less than a year old to be valid. A sixth field is a “Yes” or “No” parameter, “Yes” being valid. I need all six of these fields to be valid in order to identify the individual as "eligible". Is there a way to populate a field (an IIF statement maybe or macro) in this table to show all six fields as valid automatically?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    You could calculate this status in a query or in a textbox on form/report or in VBA code. Try something like:

    IIf([field1]<=DateAdd("y",-3,Date()) AND {do same for field2 and field3 and field4} AND [field5]<DateAdd("y",-1,Date()) AND [field6]=True, True, False)
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Auto fill a field from multiple lookup
    By shahemaan in forum Forms
    Replies: 4
    Last Post: 06-13-2014, 04:00 PM
  2. Auto-fill one field from another table
    By tasoper in forum Access
    Replies: 3
    Last Post: 06-13-2014, 07:17 AM
  3. Replies: 10
    Last Post: 11-21-2011, 02:56 AM
  4. Replies: 5
    Last Post: 01-20-2011, 11:36 PM
  5. Auto fill field upon New Record selected
    By NOTLguy in forum Programming
    Replies: 27
    Last Post: 12-05-2010, 05:12 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