Checkbox populates Textbox

  • Thread starter Thread starter JTART2
  • Start date Start date
J

JTART2

How do I get a checked CheckBox to make a nearby textbox
show a certain number/amount?

For example, Checkbox= Alpo Dogfood
Textbox= Alpo Dogfood amount
when checkbox checked, Textbox = $2.50

I've tried setting the control source of the Textbox to
that of the Checkbox, but I get "-1" when I check the box.
Anyone have any ideas?
Thanks in advance,
Jtart2
 
Jtart2,

You could add the following code to the checkbox's after_update event:

If checkbox.value=-1 then 'checked
textbox.value="$2.50"
endif


HTH,

Jen.
 
Back
Top