Results 1 to 2 of 2
  1. #1
    Tony McGuire's Avatar
    Tony McGuire is offline Novice
    Windows Vista Access 2003
    Join Date
    May 2009
    Location
    Denmark
    Posts
    14

    Value according to date

    Hi,
    I have among others 3 fields on a form:
    1. <Date> (current date)
    2. <DueDate>
    3. <Amount>



    As a default I want the <Amount> value to be shown as $0.00 until the <Date> is = or > than the <DueDate> then I would like the <Amount> value to reflect its true <Amount> for example $20.00.Can anyone provide me with a VBA syntax to make this work?
    Tony McGuire

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    For display? How about

    IIf(Date() >= DueDate, Amount, 0)
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. query to update a date based on another date
    By tkendell in forum Access
    Replies: 3
    Last Post: 06-29-2011, 09:32 PM
  2. Replies: 1
    Last Post: 02-06-2011, 06:36 PM
  3. Replies: 1
    Last Post: 07-07-2010, 04:22 PM
  4. Set date field on subform to date variable
    By laavista in forum Access
    Replies: 4
    Last Post: 06-30-2010, 06:32 PM
  5. Replies: 1
    Last Post: 12-09-2005, 10:29 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