D
dave h
Hi,
srchField is a text field in the DB
newNumber & myNumber are both numeric
Any reason this works:
newNumber = DLookup("myNumber", "lookupTable", "srchField = '60003'
")
But this does not:
dim strFld as string
strFld = "60003"
newNumber = DLookup("myNumber", "lookupTable", "srchField = ' " &
strFld & " ' ")
this second version always returns a null - the first version always returns
the correct value
Thanks, Dave H
srchField is a text field in the DB
newNumber & myNumber are both numeric
Any reason this works:
newNumber = DLookup("myNumber", "lookupTable", "srchField = '60003'
")
But this does not:
dim strFld as string
strFld = "60003"
newNumber = DLookup("myNumber", "lookupTable", "srchField = ' " &
strFld & " ' ")
this second version always returns a null - the first version always returns
the correct value
Thanks, Dave H