Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / May 2007

Tip: Looking for answers? Try searching our database.

Notifications

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Marc - 31 May 2007 15:27 GMT
I have a database with items with expirations dates. Is there a way to make
Access notify you automatically? I want Access to notify me of all the items
that will expire in the next 30 days or less, can this be done?

If it can't be done then how would I write the formula in a query to pull up
the items that will expire with in 30 days.

Thanks
Andy Hull - 31 May 2007 15:53 GMT
Hi Marc

You'll need a query anyway, something like...

select *
from tblYourTable
where dateadd("d", -30, ExpiryDate) <= date()

To "automate" it, you can get it to run every time the database is opened by
specifying a startup form (in tools - startup) and running the query in the
form's open event.

Regards

Andy Hull

> I have a database with items with expirations dates. Is there a way to make
> Access notify you automatically? I want Access to notify me of all the items
[quoted text clipped - 4 lines]
>
> Thanks
John Spencer - 31 May 2007 18:38 GMT
SELECT *
FROM Table
WHERE ExpirationDate Between Date() and DateAdd("d",30,Date())

In the query grid,
Field: ExpirationDate
Criteria: Between Date() and DateAdd("d",30,Date())

Signature

John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
.

>I have a database with items with expirations dates. Is there a way to make
> Access notify you automatically? I want Access to notify me of all the
[quoted text clipped - 6 lines]
>
> Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.