Results 1 to 2 of 2
  1. #1
    Rhubie is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2012
    Posts
    85

    Unhappy Form - validate field and make a field unenterable

    1) I have calculated fields on my form - I do not want them in the tab order - how do I prevent them from entering those fields?



    2) I have a required field that I want to validate when they leave the field - not when they save the record.

    I am new to the forms and have looked in the properties - could not find anything to do these type of things.

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    1)..how do I prevent them from entering those fields?
    Take a look at the "Enabled" and "Locked" properties of controls.

    2)I have a required field that I want to validate when they leave the field - not when they save the record.
    This can be done with code in the "Before Update" event of the control.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

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

Similar Threads

  1. Replies: 5
    Last Post: 06-19-2012, 10:46 AM
  2. Replies: 1
    Last Post: 03-03-2012, 10:17 PM
  3. If Statement to validate Field on a Form
    By ETCallHome in forum Forms
    Replies: 4
    Last Post: 04-05-2011, 05:22 PM
  4. Validate Form Field based on Duplicate Data
    By bornfattom23 in forum Forms
    Replies: 3
    Last Post: 11-05-2010, 02:02 PM
  5. using Functions to validate a date field
    By jamin14 in forum Programming
    Replies: 1
    Last Post: 03-18-2010, 12:46 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