D
Dennis
I want to call a function in a module from a button press on a form. I want
to pass the name of a check box control on my form into this function and
then use this in my function to uncheck the check box on the form. How do I
pass it and and how do I reference it in my function ?
I do this because I have several check boxes on the form and I wanted 1
common routine in a module with variables passed into it.
e.g. Call MyFunction(chkQ1)
Public Function MyFunction (ctlChkBox as Checkbox)
Forms!MyForm!ctlChBox = False
End Function
to pass the name of a check box control on my form into this function and
then use this in my function to uncheck the check box on the form. How do I
pass it and and how do I reference it in my function ?
I do this because I have several check boxes on the form and I wanted 1
common routine in a module with variables passed into it.
e.g. Call MyFunction(chkQ1)
Public Function MyFunction (ctlChkBox as Checkbox)
Forms!MyForm!ctlChBox = False
End Function