Results 1 to 6 of 6
  1. #1
    nhoover is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    10

    Expiration Date

    My first post...I hope this works!



    So what I have is a small works roster. The roster has one entry for date of acceptance, when I received the application. This date has a two year life span, when that two years is up its either renewed or thrown out. What I need is a way for a "tickler" to show up and tell me when that date is expired. Either by color or a yes no function...i'm new to access so bare with me. Please give me some feedback, a little help, or just some basic knowledge on what to do. I've looked this up but for the life of me I can't figure out what to do.

    This is the only function i've entered but i must be doing something wrong. =IIF([txtexpireddate]<Date(),"yes","no")

    I'm lost...

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    You entered that expression in a textbox ControlSource? Why doesn't it work - error message, wrong results, nothing happens?
    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.

  3. #3
    nhoover is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2013
    Posts
    10
    The expression is entered into data type date/time...not a text box. And yes, an error message shows. Thanks for the quick response.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    I don't understand what you are trying to do. How can that expression be in date/time datatype field? Attach some images of what you have done or provide the db. Follow instructions at bottom of my post.

    What is the error message?
    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.

  5. #5
    nhoover is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2013
    Posts
    10
    Small Works Roster Database.zip

    This work?

    So under the Date issued column, I would like to have something that helps notify me when they're two years old. Like I said i'm new to access for the most part so learning to do these would be great. Thanks for the help.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    Can't find anything named txtexpireddate nor anything with that expression.

    If you want report filtered to show only expired records, then need to base report on a query instead of just table as RecordSource.

    SELECT * FROM [Small Works Roster] WHERE DateAdd("yyyy",2,[Date Issued])<Date());



    You have several label controls with error on the Caption property because of ampersand. A single ampersand defines a shortcut on the character that follows it. If you want an actual ampersand to display then must repeat the ampersand:

    Railroad Construction && Marina
    Curb && Gutter/Sidewalks
    Water Lines 12" && Smaller
    Water Lines 12" && Larger

    Advise no spaces, special characters/punctuation (underscore is exception) in any names.
    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. Databse Products Expiration Date
    By PATRICK in forum Database Design
    Replies: 9
    Last Post: 02-05-2013, 08:10 PM
  2. Replies: 3
    Last Post: 08-21-2012, 03:05 PM
  3. Query for upcoming expiration date
    By jones in forum Queries
    Replies: 2
    Last Post: 05-16-2012, 02:18 AM
  4. registration codes-license expiration date
    By bdaniel in forum Programming
    Replies: 2
    Last Post: 01-01-2012, 12:15 PM
  5. Expiration Date criteria
    By NISMOJim in forum Queries
    Replies: 9
    Last Post: 07-22-2011, 11:22 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