DLookup

  • Thread starter samotek via AccessMonster.com
  • Start date
S

samotek via AccessMonster.com

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")
 
B

bhicks11 via AccessMonster.com

Hi Samotek,

Your DLookup is missing elements. You need:

DLookup(Whatyouarelookingup, TableorQueryyouarelookingin, criteria)

Example:

DLookup("[LastName]", "Employees", "[EmployeeID] = 1")

Bonnie
http://www.dataplus-svc.com
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")
 
S

samotek via AccessMonster.com

Thank you !!!!
bhicks11 said:
Hi Samotek,

Your DLookup is missing elements. You need:

DLookup(Whatyouarelookingup, TableorQueryyouarelookingin, criteria)

Example:

DLookup("[LastName]", "Employees", "[EmployeeID] = 1")

Bonnie
http://www.dataplus-svc.com
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")
 
S

samotek via AccessMonster.com

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]")

Hi Samotek,

Your DLookup is missing elements. You need:

DLookup(Whatyouarelookingup, TableorQueryyouarelookingin, criteria)

Example:

DLookup("[LastName]", "Employees", "[EmployeeID] = 1")

Bonnie
http://www.dataplus-svc.com
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")
 
P

Paolo

Hi samotek,
you must leave outside the quotation marks the variable [Me]![clientid] i.e.

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

If you leave it between the quotation marks it will be interpreted by access
as a string.

HTH Paolo

samotek via AccessMonster.com said:
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]")

Hi Samotek,

Your DLookup is missing elements. You need:

DLookup(Whatyouarelookingup, TableorQueryyouarelookingin, criteria)

Example:

DLookup("[LastName]", "Employees", "[EmployeeID] = 1")

Bonnie
http://www.dataplus-svc.com
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")
 

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

Report Group Footer DLookUp 0
DLookup in Continuous form 0
DLookup can't find a value 13
Using Min Function within DLookup Function 0
Criteria for DLookup 4
Split form 0
DLookup function 2
How do I do this in VBA? 5

Top