|
-
Jan 12th, 2000, 06:53 AM
#1
Thread Starter
Junior Member
When the record I want to return contains a # in the criteria the recordset returns no records
for instance cFind = "Jones Store #1" or
cAddr = "6151 Freeport Blvd. #180"
SQL$ = "select [Company], [Address1], [Address2], [City State Zip] from [ShipTo] where [Company] like '" & cFind & "' and Address1 like '" & cAddr & "'"
Data3.RecordSource = SQL$
Any ideas on how to get it to recognize and return the records will be much appreciated.
Thanks!
-
Jan 12th, 2000, 09:00 AM
#2
Have you tried this?
SQL$ = "select [Company], [Address1], [Address2], [City State Zip] from [ShipTo] where [Company] like '[" & cFind & "]' and Address1 like '[" & cAddr & "]'"
------------------
Marty
-
Jan 13th, 2000, 06:31 PM
#3
Junior Member
I may have missed what you were getting at, but I think the # is a 'key' symbol in Access SQL. It is usually enclosed around dates and therefore may not be able to be used in the way you are attempting
Cheers Dave
aka Lil Dave
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|