This is driving me nuts. I have a table with a lot of entries. All the fields are strings (ShortText).
I perform the followingwClass is atring. And this code works almost everytime for many values I place in wClass. But if I put "LN:A2" I get this error 3464.Code:wSQL = "SELECT STNumbers.* FROM STNumbers WHERE STNumbers.STN_Class =""" & wClass & """ ORDER BY VAL(STNumbers.STN_N02) ASC;" Set rs = CurrentDb.OpenRecordset(wSQL, DB_OPEN_DYNASET)
I have made sure that every record with this field (STN_Class = LN:A2) has valid string data - but no matter how I try and cleanse this data it always fails - just for this value - all other values work????