G
Guest
Hi all,
I am very new to access, but I do have some VBA experience.
I have created a form with 5 checkboxes that represent contact methods for
customers (Mail, phone, email, pager, other). Any combination from all blank
to all checked is possible, which is 32 distinct possibilities. Here are the
two things I want to do, but I just do not know how to accomplish them in
Access.
As the user checks the checkboxes, I will use the OnClick method to evaluate
the state of all 5 checkboxes. Based on which checkboxes are selected, I
want to write a binary value from 0 to 31 into the "contact method" field of
the current record. In VBA, I do not know how to reference the current
record, nor the current field to write the value. Can someone help with
this? The form name is frm:Master_Form, the table name is tbl:Master_Table
and the field name is Contact Method.
Secondly, the form contains the record navigation controls at the bottom.
When a user clicks on any of those controls to change records, what event can
I use to evaluate the Contact Method field for the currently selected record,
so that I can check the appropriate checkboxes? What would that code look
like?
Many thanks,
Richard
I am very new to access, but I do have some VBA experience.
I have created a form with 5 checkboxes that represent contact methods for
customers (Mail, phone, email, pager, other). Any combination from all blank
to all checked is possible, which is 32 distinct possibilities. Here are the
two things I want to do, but I just do not know how to accomplish them in
Access.
As the user checks the checkboxes, I will use the OnClick method to evaluate
the state of all 5 checkboxes. Based on which checkboxes are selected, I
want to write a binary value from 0 to 31 into the "contact method" field of
the current record. In VBA, I do not know how to reference the current
record, nor the current field to write the value. Can someone help with
this? The form name is frm:Master_Form, the table name is tbl:Master_Table
and the field name is Contact Method.
Secondly, the form contains the record navigation controls at the bottom.
When a user clicks on any of those controls to change records, what event can
I use to evaluate the Contact Method field for the currently selected record,
so that I can check the appropriate checkboxes? What would that code look
like?
Many thanks,
Richard