default value for check box

L

laavista

My apologies as I know this has been asked before, but I could not get this
to work...

I would like a "check box" to be already checked when user opens the form.

My check box is called "CheckPreview" and I have -1 as the default value.
When you open the form, it is not check marked.

Any ideas?

(Thanks for your help!)
 
L

laavista

I got it to work using the form's "on current" event. I used
checkpreview = -1

I would still like to know why using the default value for the check box did
not work, though.

Thanks.
 
N

Noëlla Gabriël

Hi,

the default value is only used for new records. If the form opens on
already existing data, it displays the values stored in that record. If you
want the form to open with a new record, set the "Data entry" property of the
form on True. It will then display the default values for the fields.
 
L

laavista

THANK YOU for sharing this info!! It's frustrating when you think something
should be happening, and you can't get it to. I can usually find
work-arounds, but I really like to know why it didn't work.

Thanks again!
 

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