My problem is that I have a value in a table which is Y or N if it is
Y I want the to check the check box from Vb propably.
Anyone to help!!!!
Riri
Is there some reason you don't just use a proper Yes/No field? You can set the
format property so it displays "Y" or "N" and you would be able to bind that
field directly to the ToggleButton and it will automatically show correctly on
the form with no code at all.
Alternatively, you could use the following as a ControlSource of the
ToggleButton...
=(FieldName="Y")
....and again it would track from record to record without the need for code.
If you "must" use a coded solution you would use the following in the form's
Current event...
Me!ToggleButtonName = (FieldName="Y")