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 / February 2005

Tip: Looking for answers? Try searching our database.

Alarms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kelli McCann - 17 Feb 2005 22:47 GMT
I would like to create something in access so when certain dates expire that
I have in a table or query I get some kind of notice. Is this possible?

Thanks,
Kelli
Wayne Morgan - 18 Feb 2005 14:35 GMT
Create a form that you open hidden when you open your database. Set the
timer on this form to 60000 (once per minute). In the Timer event, run code
to check the table and pop-up a message box (or other action of your choice)
to inform the user if action is needed.

Signature

Wayne Morgan
MS Access MVP

>I would like to create something in access so when certain dates expire
>that
> I have in a table or query I get some kind of notice. Is this possible?
Kelli McCann - 18 Feb 2005 16:23 GMT
If it's not too difficult would you be able to go into a little more detail
on the steps that I need to take to create this hidden for...I have never
done that before.

> Create a form that you open hidden when you open your database. Set the
> timer on this form to 60000 (once per minute). In the Timer event, run code
[quoted text clipped - 4 lines]
> >that
> > I have in a table or query I get some kind of notice. Is this possible?
Wayne Morgan - 18 Feb 2005 20:50 GMT
To open the form as a hidden form, place code in the Load event of your
startup form similar to:

DoCmd.OpenForm "MyTimerForm",,,,,acHidden

As far as creating the form goes, any form that remain open all the time
will work. It doesn't have to be a hidden form. The advantage of a hidden
form is that your user isn't likely to try and close it. The form wouldn't
need any controls on it, just the code in the Timer event.

Sample Code:
If DCount("[DateField]", "[MyTable]", "[DateField]<=" & Date) > 0 Then
   MsgBox "There are records that need tending too!", vbOkOnly +
vbInformation, "Overdue Items"
End If

Signature

Wayne Morgan
MS Access MVP

> If it's not too difficult would you be able to go into a little more
> detail
> on the steps that I need to take to create this hidden for...I have never
> done that before.
 
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.