RobTsintas
Technical User
Hi,
I have a form that is based on a non-updatable recordset, and has a number of checkboxes.
As the recordset cannot be updated just by clicking on the checkboxes, I have used VBA to run a line of SQL, which checks/unchecks the check box and refreshes the form.
This works fine if the VBA is in the OnClick event of a button, but if I put it into the OnClick event of the checkbox itself, it doesn't run the code (I just get the "This recordset is not updatable" message).
I tried putting the code into the GotFocus event of the CheckBox, but this causes problems with reloading the form.
Is there any way I can get the OnClick event to fire?
Thanks
I have a form that is based on a non-updatable recordset, and has a number of checkboxes.
As the recordset cannot be updated just by clicking on the checkboxes, I have used VBA to run a line of SQL, which checks/unchecks the check box and refreshes the form.
This works fine if the VBA is in the OnClick event of a button, but if I put it into the OnClick event of the checkbox itself, it doesn't run the code (I just get the "This recordset is not updatable" message).
I tried putting the code into the GotFocus event of the CheckBox, but this causes problems with reloading the form.
Is there any way I can get the OnClick event to fire?
Thanks