Results 1 to 6 of 6
  1. #1
    RustyRick is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Apr 2016
    Location
    NW Alberta
    Posts
    53

    Red Flag warning bsed on Membership date

    I have (Office 365, Win 10)



    tblContacts which has a Membership Anniversary Date.

    tblDaily which records the activity of members when they use the facility. It has a Field which records TODAY =NOW()

    I need to be flagged if their membership has expired when they step up to LOG IN for the day.

    My FORM contains both dates.

    What's the best method for that?

  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,652
    Depends on your specifics, but along the lines of:

    Code:
    If Me.AnniversaryDate > Date() Then
      MsgBox "Warning, membership expired"
    End If
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    RustyRick is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Apr 2016
    Location
    NW Alberta
    Posts
    53
    Sorry I missed explaining that the Anniversary Date is the DATE of PURCHASE. So the actual Renewal Date would be 365 days later.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    You can use the DateAdd() function to add a year to the purchase date.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    RustyRick is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Apr 2016
    Location
    NW Alberta
    Posts
    53
    Resolved thanks

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    No problem.
    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. How to flag a warning
    By SamCrow in forum Queries
    Replies: 3
    Last Post: 01-12-2014, 10:52 AM
  2. Form date field with warning
    By Aosmond in forum Forms
    Replies: 1
    Last Post: 01-14-2013, 06:30 PM
  3. Replies: 3
    Last Post: 11-20-2012, 01:40 PM
  4. Date flag
    By glasgowlad1999 in forum Forms
    Replies: 5
    Last Post: 02-15-2011, 06:13 AM
  5. Review Date on A Form Warning
    By maintt in forum Forms
    Replies: 3
    Last Post: 07-19-2010, 02:28 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