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 / Forms / March 2007

Tip: Looking for answers? Try searching our database.

How do I attach a warning message to fields in a form in Access?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
teresa - 01 Mar 2007 18:33 GMT
I have created a form and would like the users to be "warned" when they
choose a certain field that tey are choosing that particular field.
kingston - 01 Mar 2007 18:59 GMT
Use the control's On Click event and something like:

Msgbox "You have selected this field."

>I have created a form and would like the users to be "warned" when they
>choose a certain field that tey are choosing that particular field.
teresa - 01 Mar 2007 19:11 GMT
Too easy :)  Thank you very much.

> Use the control's On Click event and something like:
>
> Msgbox "You have selected this field."
>
> >I have created a form and would like the users to be "warned" when they
> >choose a certain field that tey are choosing that particular field.
Ofer Cohen - 01 Mar 2007 19:08 GMT
You can use the field before update event to check the value selected, and
prompt a message if it's a certain value

If Me.[Field Name] = 1 Then
  MsgBox "You have selected the wrong value"
  Cancel = True  ' If you don't want the field to be saved with the current
value
End If

Signature

Good Luck
BS"D

> I have created a form and would like the users to be "warned" when they
> choose a certain field that tey are choosing that particular field.
 
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.