Results 1 to 2 of 2
  1. #1
    mrmims is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jul 2013
    Posts
    53

    Access 2010 Checkbox & Validation Rules

    Hello,

    I am creating a "Web Compatible" database in Access 2010 for tracking training of my employees.



    In table "EmployeeTrack" I have checkbox "InTraining", that when checked makes visible a combobox "TrainerCB". When the "InTraining" checkbox is checked I want the "TrainerCB" to be a required field, but on't with "InTraining" is checked.

    How do I do this with validation rules in a web compatible table?

    Thank you

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    Usually the validation property only uses simple math checks, I have never tried referencing externeal forms. You may have to write some code in the 'after update' event to check validation.
    I usu have a check on the 'Save' button that validates all the fields 1st...
    Code:
    Private Function IsValidForm() As Boolean
    Dim vMsg
    Select Case True
       Case IsNull(txtFile)
          vMsg = "File is missing"
       Case IsNull(txtTblData)
          vMsg = "Table name is missing"
    End Select
    If vMsg <> "" Then MsgBox vMsg, vbCritical, "Required Field"
    IsValidForm = vMsg = ""
    End Function

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

Similar Threads

  1. Replies: 27
    Last Post: 06-06-2013, 04:31 AM
  2. Validation Rules Help
    By Troop in forum Access
    Replies: 11
    Last Post: 03-05-2013, 01:26 PM
  3. Validation Rules in the Forms
    By JoeyHenry in forum Access
    Replies: 1
    Last Post: 02-04-2013, 05:07 PM
  4. Field rules/validation rules
    By sk88 in forum Access
    Replies: 14
    Last Post: 02-26-2012, 01:03 PM
  5. Validation Rules
    By esglover in forum Database Design
    Replies: 1
    Last Post: 07-23-2010, 08:02 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