Results 1 to 8 of 8
  1. #1
    Mcal6096 is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Aug 2017
    Posts
    4

    Create an alert based on mileage

    Hello,

    I used a template for Access to create a fleet management maintenance and fuel trackers. Is there a way to get an alert when a specific mileage threshold is hit? Like if I am entering fuel for a certain vehicle and it tallys until 5000 miles driven, then I get an alert?

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    not much to go on - suggest investigate conditional formatting

  3. #3
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    i have a tConfig table that holds this criteria. you can have [MilageLimit] field
    set it to 5000.

    then when you sum a persons milage ,add in this table, DO NOT JOIN the table.
    bring in tConfig.MilageLimit in the query
    then you can put a message in another field in the query: MsgFld: IIF([sumMilage]=> tConfig.MilageLimit,"LIMIT REACHED")

    or on a form, when the data loads,display a message:
    if [sumMilage]>= tConfig.MilageLimit the msgbox "LIMIT REACHED"

  4. #4
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,471
    Yes but would need to know exactly what field, what condition for the alert to trigger and what kind of alert you want(color the field, pop up message box)? In your above example, you say tally to 5000 miles driven? Do you mean you are entering this data and when it totals > 5000 you want an alert?

  5. #5
    Mcal6096 is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Aug 2017
    Posts
    4
    Yes. For instance, when we fuel our fleet of vehicles, we log the mileage along with Gallons Price etc for each car.. So each time we log the mileage for a specific vehicle, when it catches that it has been 5,000 miles, I would like an alert, if that makes sense.

  6. #6
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,471
    What kind of alert, you have to be specific on what you want. You can add conditions on AfterUpdate event of your mileage field that basically says If Me.Mileage > 5000 then "Do your Alert". Or Ranman has another method. Few ways to do depending on when, where and how you want it to work.

  7. #7
    Mcal6096 is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Aug 2017
    Posts
    4
    I am sorta new to Access and all of its functions. I like the AfterUpdate idea you stated. What other information could I provide to get this question answered?

  8. #8
    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're doing fleet maintenance, it gets a lot more complicated. If 5000 is the oil change interval, you want to be alerted at 5000 since the last oil change, not just at 5000. I've got a couple of vehicle maintenance apps running. I had tables for vehicles of course, also service types (oil change, transmission service, etc), service performed (type, odometer, date, etc), and intervals (vehicle ID, type ID, mileage). With those I can produce a report of vehicles that are coming due for service, based on the current odometer, the last service performed and the interval.
    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. Replies: 3
    Last Post: 11-06-2016, 11:10 AM
  2. Replies: 13
    Last Post: 03-20-2014, 09:31 AM
  3. Mileage App
    By neo651 in forum Access
    Replies: 1
    Last Post: 06-01-2012, 03:29 PM
  4. Create an alert
    By ellixer in forum Programming
    Replies: 2
    Last Post: 06-13-2011, 08:30 AM
  5. Replies: 1
    Last Post: 02-10-2010, 12:39 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