Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

#Name? in Text Field

Status
Not open for further replies.

londonkiwi

Programmer
Sep 25, 2000
83
NZ
I am trying to use expression builder in Access2000 to provide a value in a text box. The control source of the text box {ExpectedTCost) is:

=IIf(IsNull([Projects]![TenderPrice]),[NCSdata]![Budget],[Projects]![TenderPrice])

in other words - if there is no TenderPrice value provided, then default to the Budget value.

All I end up with is the value #Name? in text box ExpectedTC. Why?

cheers
 
Preface the controls reference with "forms."

ie:
forms.[NCSdata]![Budget]

 
Assuming that your text box is in a form then your expression needs to refer to other controls on the form and not to to tables. If you have to refere back to tables use dlookup
 
cheers.

Text box is in form.
Suggestions have both help in solving problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top