Results 1 to 7 of 7
  1. #1
    hinchi1 is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Sep 2017
    Posts
    181

    Show expiring records on startup

    I have a database (still work in progress) which stores my teams training records. What would be the best way to inform the user when they logon to the database, that records are due to expire, or need renewing? I was thinking that if a course is say, 3 months away from renewal the logged in user would be prompted by a message box. They then can choose to see all records that are expiring and take action. What would be a good way to display said records?



    Thanks in advance.

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2019
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Most of my DBs have an unbound "Main Menu" form to navigate around the db which opens when the DB is opened. I would use the On Activate event of this form to query the DB for a count of qualifying records. I might also have a button which is made visible if that count is >0. The caption of the button could be set to inform the number of records found. Clicking the button would open a form/report to view the records.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    hinchi1 is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Sep 2017
    Posts
    181
    Quote Originally Posted by Bob Fitz View Post
    Most of my DBs have an unbound "Main Menu" form to navigate around the db which opens when the DB is opened. I would use the On Activate event of this form to query the DB for a count of qualifying records. I might also have a button which is made visible if that count is >0. The caption of the button could be set to inform the number of records found. Clicking the button would open a form/report to view the records.
    Hi Bob
    Do you have any code examples of how this is done that I could adapt?

  4. #4
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    I did something similar. When user opened db, a query written in code looked for qualifying records. If the record count was zero it did nothing. If not, it presented a message box with the count and let them proceed. If you want to do more than that, you could open a recordset and if its count >0 then use it to base the opening form upon. That's just one of many (no doubt) approaches you could take.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  5. #5
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2019
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Quote Originally Posted by hinchi1 View Post
    Hi Bob
    Do you have any code examples of how this is done that I could adapt?
    See DB attached.
    Attached Files Attached Files
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  6. #6
    hinchi1 is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Sep 2017
    Posts
    181
    Hi Bob
    Thanks for this. Nice and simple code to achieve what I am after. Thanks again.

  7. #7
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2019
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Quote Originally Posted by hinchi1 View Post
    Hi Bob
    Thanks for this. Nice and simple code to achieve what I am after. Thanks again.
    You're welcome. Always glad to help if I can
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

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

Similar Threads

  1. Show only records that have changes
    By trident in forum Forms
    Replies: 7
    Last Post: 04-06-2015, 02:35 PM
  2. Replies: 17
    Last Post: 07-31-2013, 11:35 AM
  3. Query for expiring items
    By Lmartinrn in forum Access
    Replies: 22
    Last Post: 03-23-2012, 08:27 PM
  4. Replies: 1
    Last Post: 12-15-2011, 08:47 AM
  5. Replies: 4
    Last Post: 08-18-2011, 01:52 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