Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Form Dlookup Cbo value

$
0
0
Hi,

I am attempting Dlookup in a textbox in FrmSales.

When I use this,
Code:

=DLookUp("[Price]","TblProduct","[Product]='" & [Forms]![FrmSales]![CboProduct] & "'")
I get no return, but when I use this
Code:

=DLookUp("[Price]","TblProduct","[Product]='" & "Red" & "'")
I get the proper results.

CboProducts is a combobox with the selection Red,Green,Blue and any of the three words hardcoded in the formula gets the correct results.

What am I missing ?

Thanks

Attached Files
File Type: zip FormCboIssue.zip (25.3 KB)

Viewing all articles
Browse latest Browse all 13329

Trending Articles