Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Check Box

Discussion in 'Information Technology' started by Nick, Jul 28, 2006.

Tags:
  1. Nick

    Nick
    Expand Collapse
    Guest

    Nick" wrote:

    > I'm trying to prevent/minimize incorrect data entry on a form. If "Custody"
    > is checked then "Event" Combo Box will not except "Case Plan Completed" from
    > (Value List). I hope that provides enought info. for help. Thanks.
     
  2. Loading...


  3. Ofer Cohen

    Ofer Cohen
    Expand Collapse
    Guest

    On the before update event of the form you can write the code that validate
    the entries

    If Me.Custody = True And Me.Event = "Case Plan Completed" Then
    MsgBox "Can't select Case Plan Completed if Custody is checked"
    Cancel = True ' wont let the record saved
    End If

    --
    Good Luck
    BS"D


    "Nick" wrote:

    > Nick" wrote:
    >
    > > I'm trying to prevent/minimize incorrect data entry on a form. If "Custody"
    > > is checked then "Event" Combo Box will not except "Case Plan Completed" from
    > > (Value List). I hope that provides enought info. for help. Thanks.
     
  4. Nick

    Nick
    Expand Collapse
    Guest

    You the man Ofer!!

    "Ofer Cohen" wrote:

    > On the before update event of the form you can write the code that validate
    > the entries
    >
    > If Me.Custody = True And Me.Event = "Case Plan Completed" Then
    > MsgBox "Can't select Case Plan Completed if Custody is checked"
    > Cancel = True ' wont let the record saved
    > End If
    >
    > --
    > Good Luck
    > BS"D
    >
    >
    > "Nick" wrote:
    >
    > > Nick" wrote:
    > >
    > > > I'm trying to prevent/minimize incorrect data entry on a form. If "Custody"
    > > > is checked then "Event" Combo Box will not except "Case Plan Completed" from
    > > > (Value List). I hope that provides enought info. for help. Thanks.
     

Share This Page