Checking for field value on form open

L

Leila

I am trying to find the syntax to check a fields value when
opening a form. The field is a text field. Can anyone help ?
 
S

Sandra Daigle

Depends on what you mean by 'Check a fields value' -

You can refer to it in a variety of different ways - for example the
following will display a msgbox when the value of the control named Text1
has the value "ABC":

if me!Text1 = "ABC" then
msgbox "the value is ABC"
endif
 

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