Results 1 to 2 of 2
  1. #1
    radguy is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2014
    Posts
    32

    Using Macros to Create an Error Message


    Does anyone know how to use Macros or Expression Builder to create an error message in a form if I am filling out a form and the field is blank? I want to create a Macro or an Expression Builder that won't allow me to move on to the next field without first filling out the field before it.

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    You can adjust the field's properties at the table level to mandate said field has a value before saving the record. Another approach is to use code to maintain constraints. If you enforce constraints at the table level within Access, understand there will be a need to use code and or Options Settings so the Users do not run amuck through a back door.

    Here are some VBA examples. It is not a perfect example. I added code to an existing project and did not make ALL of the code my own. Like any project, you need to first consider the needs of the business and then decide what functionality to build into your app.
    https://www.accessforums.net/access/...tml#post236414

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 15
    Last Post: 11-01-2013, 03:24 PM
  2. Replies: 7
    Last Post: 07-24-2013, 02:01 PM
  3. Replies: 7
    Last Post: 09-21-2012, 03:30 PM
  4. Replies: 2
    Last Post: 06-23-2012, 11:59 PM
  5. Replies: 1
    Last Post: 12-17-2011, 02:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums