Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DLookup 1

Status
Not open for further replies.

samotek

Technical User
May 9, 2005
197
BG
I have a table of only 2 fields, clientid and note.This field is memo.I tried to make a DLookup control in my form but i cannot get the result.What is the reason ?
The unbound control in my form i have written as folllows:
=DLookUp("[notes]";"NotesToContacts")
 
How are ya samotek . . .

There's no crireria to say which record! Have a look at the [blue]third arguement[/blue] of DLookUp.

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
Thank you for your advice. I have built the DLookup wth the criteria but i get the message error.
Will you help ?

=DLookUp(" note";"NotesToContacts";" [clientid]=[Me]![clientid]")
 
samotek . . .

Don't think it matters but there's an uneeded space:
Code:
[blue]"[COLOR=black red] [/color][clientid]=[Me]![clientid]"[/blue]

If ClientID is text criteria should be:
Code:
[blue]"[clientid] = '" & [Me]![clientid] & "'"[/blue]

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top