I need to look up a record in a table called caculatedstandard and use a control in a form. I tried this dlookup statement:
=DLookUp([CIMPROV<1200],[CACULATEDSTANDARD],[GRADE]=[Form]!APPRAISERPRODUCTION!GRADE2)
I get a #name error
If the field Grade2 is a number, it will work as is. If it is a string, you will need to place apostrophes either side of the number. IF it is a date field a hash character will need to be placed either side of the field inside double quotes.
I used the funcion:
=DLookUp("[CIMPROV<1200]","[CALCSTANDARD]","[GRADE]=" & [Form]!APPRAISERPRODUCTION!GRADE2)
I change the name of the table calculatedstandard to the above table and change the function also.
I still receive a #name error. My grade field is a number and a text box on my form appraiserproduction. The grade2 is a text box named grade2 with the control source =2.
Spot the typo. A quick point: With the grade2 textbox with a controlsource equal to 2 (in other words, it uses a field called 2 on a bound form), why not just set the criteria clause of Dlookup to pick up values where grade=2?
For example:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.