Check box click event doesn't work
-
Montag, 12. März 2012 05:23
I have a checkbox in a grid as a current control. That column's control source is set to a logical field fTmpList.Select. When I click on the Check box it updates the fTmpList.Select value with .T. and .F. but when I click on the checkbox by Spacebar it doesn't update the field value correctly.
What may be the reason for this? Pls some1 help.
Alle Antworten
-
Montag, 12. März 2012 09:50Beantworter
What are the settings you have on the Checkbox, Column and Grid.
Look for the keypress of the spacebar being "consumed" by another object?
I have checked my applications and with the Checkbox settings all at default values (except Controlsource) it works as it should taking the spacebar and alternating T/F.
-
Montag, 12. März 2012 11:10
Check Controlsource field value it doesn't update. Put a messagebox in to checkbox Click event to get the field value.
-
Montag, 12. März 2012 16:32
first of all the checkbox.value is changed through interaction. The field always is updated later, if the valid event is passed, which is raised, if the control loses focus. So yes, you can't read the new value from the controlsource field, you can only read it from THIS.Value within the click event.
Bye, Olaf.
- Als Antwort vorgeschlagen Pavel CelbaMicrosoft Community Contributor, Moderator Montag, 19. März 2012 20:02
- Als Antwort markiert Mark Liu-lxfModerator Dienstag, 20. März 2012 06:26

