+ Reply to Thread
Results 1 to 5 of 5

Alerts on the basis of date

  1. #1
    Registered User
    Join Date
    02-21-2009
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    31

    Alerts on the basis of date

    Hi!

    I have a table in which all my vendors are listed,type of Annual Maintenance contracts(AMC),Department,Date of starting of contract & Date of expiry is present.I would like to make a Access file so that when the AMC is going to due in next 3 or 2 or 1 months system should give me POP up window or alert.

    This is how column will be in ACCESS and its values.


    VENDORS= ABC COMPANY
    TYPE OF CONTRACT= ELECTRICAL
    DEPARTMENT=MAINTENANCE
    DATE OF CONTRACT= 01-01-2009
    END OF CONTRACT=31-12-2009

    So on 01-10-2009,01-11-2009 system should through a message box to user alerting him about expiry of contract.Atleast 1000 records will be there in access file.


    Thanks


    Navneet

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    24,002

    Re: Alerts on the basis of date

    Quote Originally Posted by Navneet View Post
    Hi!

    I have a table in which all my vendors are listed,type of Annual Maintenance contracts(AMC),Department,Date of starting of contract & Date of expiry is present.I would like to make a Access file so that when the AMC is going to due in next 3 or 2 or 1 months system should give me POP up window or alert.

    This is how column will be in ACCESS and its values.


    VENDORS= ABC COMPANY
    TYPE OF CONTRACT= ELECTRICAL
    DEPARTMENT=MAINTENANCE
    DATE OF CONTRACT= 01-01-2009
    END OF CONTRACT=31-12-2009

    So on 01-10-2009,01-11-2009 system should through a message box to user alerting him about expiry of contract.Atleast 1000 records will be there in access file.


    Thanks


    Navneet
    Here is a sample dB that should get you started. I created a table with the fields you indicated above. You could have more obviously. I created a query that says, give me all contracts that will expire within the next 60 days. You can change this to what ever you want. Next I created an input form that is bound to the table with the same information. I then put code in the on load event for the form that says, open the query that shows the contracts expiring within the next 60 days. When you open the form, the query also opens. A query is better than a message box, as with over 1000 records, you may have many contracts expiring in the time fram indicated. You can fine tune this to your own needs, but this will get you started. Good Luck.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    02-21-2009
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Alerts on the basis of date

    Thanks Alan.Is it possible the moment I will run this file,Query should run & appear first and records should appear in RED COLOR.Can I have one more column in Table or QUERY where I can check or mark the record which will not appear in the QUERY next time.

    I am thinking I will run this file at the start up or when user login.


    Thanks Alan and I am waiting for your reply.


    Navneet

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Alerts on the basis of date

    Hi Alan,
    please refrain from quoting entire posts. It clutters the forum unnecessarily

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    24,002

    Re: Alerts on the basis of date

    You cannot apply the conditional formatting to a query. If you are looking for special formatting you will have to 1) create a report using the query as the record source or 2) export your query to excel and then apply conditional formatting.

    As to your other question on check boxes, you could create a new field in your table and make it a yes/no field. In your criteria for your query for the new field, set yes or no to display the results.

    Alan

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1