Please help me to have a good weekend. I have a bug.OK. I have a dialogbox which contains a dynamically populated checkbox field and a comments field. In the queryClose of the dialogbox I want to check if any of the values of the checkbox are not checked off, if this is the case then the user must enter comments. This seems very simple and yet I haven’t been able to figure it out.
Not exactly what I need because there might be perhaps 10 choices in the check box. I need to know if anything other than all 10 have been checked (like only 9 have been checked or only 3 have been checked). I don’t care how many have been checked but I do need to know if at least one has been left unchecked.Thanks!
If Ubound(dialog_doc.FieldName) < NUMBER_OF_CHOICES_MINUS_ONE Then
Since the back-end value is an array of the selected values (zero-based), then if there are ten choices available and the Ubound of the values array is only 9, then one value is not checked.