Dlookup Question (I should know) (1 Viewer)

melodyF

Registered User.
Local time
Today, 04:37
Joined
Mar 20, 2002
Messages
19
I'm trying to use Dlookup to pull a value from a query into a report:
ThI want the Salary where the field section is BankPro..

=DLookUp("Salary","qryChartQtr2","Section = BankPro")
The value of BankPro is text.

Thanks for the help...
 

RichMorrison

Registered User.
Local time
Yesterday, 22:37
Joined
Apr 24, 2002
Messages
588
you wrote
<<
=DLookUp("Salary","qryChartQtr2","Section = BankPro")
The value of BankPro is text.
>>

Should be
=DLookUp("Salary","qryChartQtr2","Section = 'BankPro'")
with single quotes around BankPro

RichM
 

Users who are viewing this thread

Top Bottom