Okay it seems the SQL is "working" with all the SQL statements, however the program is failing on the use the first Record when I use the second statement and PHV's suggested statement.
Error Type:
ADODB.Recordset (0x800A0CC1)
Item cannot be found in the collection corresponding to the...
This Works:
strSQL = "SELECT CnAdrPrf_ZIP
FROM Alive_Alumni_Address
WHERE LEFT(CnAdrPrf_ZIP,5)
BETWEEN'"& ZipNeg &"' AND'"& ZipAdd &"'
ORDER BY CnAdrPrf_ZIP;"
This Doesn't Work:
strSQL = "SELECT LEFT(CnAdrPrf_ZIP,5)
FROM Alive_Alumni_Address
WHERE LEFT(CnAdrPrf_ZIP,5)
BETWEEN'"& ZipNeg &"'...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.