Code:
Dim cn As ADODB.Connection
Set cn = CurrentProject.Connection
car = "b"
nbr = 1652
SQL = "INSERT INTO caracteres (car, nbr) VALUES ('" + Replace(car, "'", "''") + "', " + CStr(nbr) + ")"
cn.Execute SQL, NumOfRec
Debug.Print "INSERT " + car + " " + CStr(NumOfRec)
Debug.Print SQL
INSERT b 1
INSERT INTO caracteres (car, nbr) VALUES ('b', 1652)
But, in the table, I get this :
car = b
nbr = 1
In fact, I have an idear, but don't know how to do with it.
Because later in the code, I do a UPDATE with car="B" and nbr=1 WHERE car='B'
Is there a syntax like :
WHERE BinaryComp(car,"B")... ?