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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Quotes " ' " Hell in Dlookup. 1

Status
Not open for further replies.

dmon000

Technical User
Sep 9, 2003
79
US
I have a dlookup that just is not right, I'm sure due to the quotes and single quotes not being just right.
This is it:

DLookup("LIST_NAME", "EMAIL_DIST_LIST", "RECEPIENTS Like " & fOSUserName & " & " * " ' AND LIST_NAME = 'ECN_ALL_OPERATION'")

The List_Name and the RECEPIENTS fields are text fields.
fOSUserName is a function which returns a text string which is the currently logged on network user.

THANKS !!!
 
try

DLookup("LIST_NAME", "EMAIL_DIST_LIST", "RECEPIENTS Like '" & fOSUserName & "*' AND LIST_NAME = 'ECN_ALL_OPERATION'")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top