#name? message in control box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have the following expression as my Controlsource. [PEN] is calculated
elsewhere on my form and [PEN_MAX] is pulled from table [WPS Data]. I keep
getting the error message.

=IIf([PEN]=[WPS Data]!PEN_MAX,"Bad","Good")
 
In a control source, it will need an =
=[Forms]![YourFormName]![PEN]

KARL DEWEY said:
OR reference [PEN] like this --
[Forms]![YourFormName]![PEN]

zachnjoe said:
I have the following expression as my Controlsource. [PEN] is calculated
elsewhere on my form and [PEN_MAX] is pulled from table [WPS Data]. I keep
getting the error message.

=IIf([PEN]=[WPS Data]!PEN_MAX,"Bad","Good")
 
The title of my form is [MAIN FORM]. I don't understand what I should put in
the [Forms] box. I new to Access.

IIf([Forms]![MAIN FORM]![PEN]=[WPS Data]!PEN_MAX,"Bad","Good")
 

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

Back
Top