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

Missing Operator in Query

Status
Not open for further replies.

Hfnet

IS-IT--Management
Dec 31, 2003
369
GB
I have an SQL sleect statement which is bringing up an error:

Set adoRec = CurrentDb.OpenRecordset("" & _
"SELECT CustomerAddresses.TechRef, CustomerAddresses.CustomerName, UCase(CustName) " & _
"FROM CustomerAddresses " & _
"WHERE (UCase(CustName)) = " & dID)

The error is
Synatx Error (Missing operator) in Query Expression
'(Ucase(CustName) = TEST NAME'.

Any ideas please? I need to convert a search name to upper case for matching.
 
Text/strings will need to be qualified thru single quotes:

[tt]"WHERE (UCase(CustName)) = '" & dID & "'")[/tt]

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top