Skip to main content
Participant
Aug 6, 2017 8:16 PM UTC
Question

How to check a checkbox from vba?

Hi,

I am filling up PDF forms from Vba in Microsoft Access. Everything goes fine, except that I am unable to check checkboxes from my code.

My code is pretty simple, something like that :

Set field = jso.getField("checkboxfieldname")

field.Value = True

I tried everything I could think of: 1, "1", "On, "on", True, "checked", etc. Nothing seems to work.

I looked at the SDK: nothing on how to check checkboxes from vba in the documentation, nothing in examples either...

I'm sure the answer is simple 🙂

Thanks for your help,

Patrick

This topic is closed to new replies. Start a new post to keep the conversation going.

5 replies

Bernd Alheit
Community Expert
Community Expert
Aug 6, 2017 8:41 PM UTC

What is the export value of the check box?

Translate
emphyrioAuthor
Participant
Aug 6, 2017 8:57 PM UTC

What do you mean by "export value"?

Translate
Bernd Alheit
Community Expert
Community Expert
Aug 6, 2017 9:04 PM UTC

You will get this value from field.value when the box is checked.

Translate