using controls in forms

  • Thread starter Thread starter Rudi Dehaes
  • Start date Start date
R

Rudi Dehaes

Hoi,

I want to check a form before sending, if two checkboxes are set.
Can anyone help me

Thankx

Rudi
 
In the form code trap the Item_Send event. In that event handler use
code similar to this:

Function Item_Send()
Dim objControl1
Dim objControl2

Set objControl1 = Item.GetInspector. _
ModifiedFormPages("myCustomFormPage").Controls("Checkbox1")

If objControl1.Value = True Then
'checked
Else
'not checked
End If

'repeat for second checkbox
'to cancel send set Item_Send = False
End Function

For more information on forms coding see
http://www.slipstick.com/dev/forms.htm
 
Back
Top