B
Bill Stanton
I have a form that contains, amongst other controls,
two check-boxes both of which are bound to record
fields. In the table definitions, one default is set to
yes/true while the other's default value is unspecified.
Thus, when the form opens, one is checked and the
other is not... all as expected.
There is a condition that is reflected in the OpenArgs
(strDParms below) where I want to change the values
of the check-boxes in the OnOpen code. Every
attempt I've made to assign a new value, e.g.,
Me.MyChkBox = or Me.MyChkBox.Value =
produces an error message to the effect that a value
cannot be assigned. I've tried using both the name
of the check-boxes and the field names in the
assignments without success.
DoCmd.OpenForm frm, , , , acAdd, , strDParms
Is something special required when in "acAdd" mode?
Thanks,
Bill
two check-boxes both of which are bound to record
fields. In the table definitions, one default is set to
yes/true while the other's default value is unspecified.
Thus, when the form opens, one is checked and the
other is not... all as expected.
There is a condition that is reflected in the OpenArgs
(strDParms below) where I want to change the values
of the check-boxes in the OnOpen code. Every
attempt I've made to assign a new value, e.g.,
Me.MyChkBox = or Me.MyChkBox.Value =
produces an error message to the effect that a value
cannot be assigned. I've tried using both the name
of the check-boxes and the field names in the
assignments without success.
DoCmd.OpenForm frm, , , , acAdd, , strDParms
Is something special required when in "acAdd" mode?
Thanks,
Bill