Hello!
I am working on an Access 2007 database which contains a combo box with checkboxes for a multi value data field (I dont like this of course but I cannot change now).
I want to read out the values one after the other in VBA.
So I have this code:
But the problem is: If no checkbox is checked, the UBound() function replies with an type mismatch error.
How can I check whether no checkbox is checked?
If I write something like
this will not work if there are checkboxes checked.
I am working on an Access 2007 database which contains a combo box with checkboxes for a multi value data field (I dont like this of course but I cannot change now).
I want to read out the values one after the other in VBA.
So I have this code:
Code:
knowledge() As Variant = Me!Knowledge.Form![personal experience].Value For y = 0 To UBound(knowlege) something = knowledge(y) Next y
How can I check whether no checkbox is checked?
If I write something like
Code:
If Not Me!Knowledge.Form![personal experience].Value = False Then
Comment