ChrisCarroll
Programmer
- Oct 10, 2000
- 177
I have the following:
A form showing a purchase order
A subform with a list of books on that purchase order
A checkbox on the subform with controlsource="Iif(Location=2, False, True)" which indicates whether the book is still on order (location=2) or arrived (location=3)
I want: To be able to tick the checkbox to indicate that a book has arrived
Obvious there is the problem that the checkbox is bound to an expression, not a field, so I put code in chkArrived_Click():
If Location=2 Then
Location=3
Elsif Location=3
Location=2
End If
But the Click event doesn't fire when I click on the checkbox. This was a disappointment to me.
I can't use an unbound checkbox (I assume?) because in a list of books on the subform (some arrived, some not) I wouldn't know how to set the value of the checkbox for each row except by binding it.
I even tried putting a transparent box over the checkbox hoping I could get a click event off that, but that didn't register any click events either.
How do I do this?
Thanks,
Chris
A form showing a purchase order
A subform with a list of books on that purchase order
A checkbox on the subform with controlsource="Iif(Location=2, False, True)" which indicates whether the book is still on order (location=2) or arrived (location=3)
I want: To be able to tick the checkbox to indicate that a book has arrived
Obvious there is the problem that the checkbox is bound to an expression, not a field, so I put code in chkArrived_Click():
If Location=2 Then
Location=3
Elsif Location=3
Location=2
End If
But the Click event doesn't fire when I click on the checkbox. This was a disappointment to me.
I can't use an unbound checkbox (I assume?) because in a list of books on the subform (some arrived, some not) I wouldn't know how to set the value of the checkbox for each row except by binding it.
I even tried putting a transparent box over the checkbox hoping I could get a click event off that, but that didn't register any click events either.
How do I do this?
Thanks,
Chris