Checkbox populates Textbox

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
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top