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

Help with quotes!

Status
Not open for further replies.

tabbytab

Technical User
Mar 21, 2005
74
GB
Hi Guys

I have a sql query that includes an email adress in the Where clause

ie strEmail = xx.xx@xx.com

I cannot get this to work.
I've tried single & double quotes around the email address.

Where strEmail = "xx.xx@xx.com"
Where strEmail = 'xx.xx@xx.com'
Any clues?

Thanks in advance
TabbyTab
 
strEmail is probably a varchar field, so you would want to use single quotes. Is it possible that there are some unseen characters involved. For example, if the database has xx@xx.com[!]TabCharacter[/!] and you are searching for it without the tab character, then you won't get your match.

Hope this helps.

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top