dlookup

T

themase

hello all

any ideas why this dlookup is not working

DLookup("[price]", "[qrynewprice]", "[shareid] = " &
Forms![frmshares]![shareid]) all the fields seem to be ok!
 
D

Daniel Pineault

what filed type is [shareid]?

you might want to try

DLookup("[price]", "[qrynewprice]", "[shareid] = '" &
Forms![frmshares]![shareid] & "'")

and see if that doesn't do the trick.

If the above does not work, when you run the Dlookup as it was written
originally, does it return an error? What value does it return?
--
Hope this helps,

Daniel Pineault
http://www.cardaconsultants.com/
For Access Tips and Examples: http://www.devhut.net
Please rate this post using the vote buttons if it was helpful.
 

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

Similar Threads

sorry posted wrongly 2
DLookup and Nz 0
dlookup with if 1
Get a number from a table to a form. 0
Dlookup is broken... 1
Dlookup Expression 3
Dlookup help Please !! 1
Dlookup error 13 7

Top