Results 1 to 4 of 4
  1. #1
    cbrsix is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    214

    Message Box

    I have a table that has a list of states where we have certain licenses and their respective expiration dates. These dates have to be monitored and I would like to have a message box that automatically comes up when access is opened that shows the state and the expiration date. I want this message box to appear about a month before the actual expiration date. How can I go about accomplish this?



    Thanks.

  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,521
    If you search here on reminders or expiration you should find similar threads. Basically, create a query that displays any records due within a month. Test that query with a DCount when the db opens. If it returns any records, open a form based on the query to display the results to the user.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    cbrsix is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    214
    What do you mean when you say to test the query with a DCount when the db opens? Is this necessary if I have a query created that returns the proper fields when run?

  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,521
    The reasoning would be that you don't want to open the form if there are no records to display. One way to avoid that is to test the underlying query before opening the form.
    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. Message Box
    By crowegreg in forum Programming
    Replies: 2
    Last Post: 05-23-2012, 10:00 AM
  2. Need Help with message box.
    By Grahamvdh in forum Programming
    Replies: 1
    Last Post: 05-10-2012, 01:29 PM
  3. Message Box
    By Alex Motilal in forum Forms
    Replies: 1
    Last Post: 03-27-2012, 08:31 AM
  4. Message Box
    By dr223 in forum Access
    Replies: 11
    Last Post: 01-12-2012, 11:59 AM
  5. message box help
    By shaz10010 in forum Forms
    Replies: 1
    Last Post: 04-17-2009, 09:11 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