Dlookup helo..

  • Thread starter Thread starter Tanya via AccessMonster.com
  • Start date Start date
T

Tanya via AccessMonster.com

Hi,

hopefully an easy one for someone.

i have a table which contains a label name and i want the form to vary.

i have everything i need except for this last bit

In the Where Criteria belwo J1 is datatype text and i'm not sure on the
correct syntax

Me.LJ1.Caption = DLookup("[SheetDesc]", "tblQuality_SheetCodes", "[SheetCode]
= J1")

thanks for your help
Tanya
 
In the Where Criteria belwo J1 is datatype text and i'm not sure on the
correct syntax

Me.LJ1.Caption = DLookup("[SheetDesc]", "tblQuality_SheetCodes", "[SheetCode]
= J1")

Put quotes around the criterion:

Me.LJ1.Caption = DLookup("[SheetDesc]", "tblQuality_SheetCodes",
"[SheetCode] = 'J1'")


John W. Vinson[MVP]
 
thank you very much John..
something so simple i feel a bit silly



John said:
In the Where Criteria belwo J1 is datatype text and i'm not sure on the
correct syntax

Me.LJ1.Caption = DLookup("[SheetDesc]", "tblQuality_SheetCodes", "[SheetCode]
= J1")

Put quotes around the criterion:

Me.LJ1.Caption = DLookup("[SheetDesc]", "tblQuality_SheetCodes",
"[SheetCode] = 'J1'")

John W. Vinson[MVP]
 

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

Back
Top