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 2006

Tip: Looking for answers? Try searching our database.

How do I set up an event prompt in MS Access?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Donbenz - 23 May 2006 20:44 GMT
I am trying to set up a prompt when I input data to remind me to check
something?
Phil F - 23 May 2006 23:57 GMT
You can either use the "Enter" event or the "BeforeUpdate" event.

Using "Enter" can be a little problematic, as sometimes Access automatically
enters a field (for example, if it is the first on a subform) and triggers
this event when all you are doing is loading the form.

"BeforeUpdate" gives you the opportunity to Cancel before it actually posts
the value. It occers just as you try to post the changes.

Sub YourField_BeforeUpdate(Cancel as Boolean)
  If MsgBox("Did you check so-and-so?", vbYesNo) = vbNo then
       Cancel = True
       Me.YourField.Undo
  End If
End Sub

- Phil Freihofner

> I am trying to set up a prompt when I input data to remind me to check
> something?
 
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.