S
Sylvain Lafontaine
strSql = "INSERT INTO ESR (ESR_JCN,ESR_PARCTAG)" _
& " VALUES (" & strJcn & "," & strParcTag & ")"
If one of these variable contains a string value, for example strParcTage,
then delimite it with single quotes and take the precaution of replacing all
encased single quotes with two single quotes:
strSql = "INSERT INTO ESR (ESR_JCN,ESR_PARCTAG)" _
& " VALUES (" & strJcn & ",'" & Replace (strParcTag, "'", "''") & "')"
& " VALUES (" & strJcn & "," & strParcTag & ")"
If one of these variable contains a string value, for example strParcTage,
then delimite it with single quotes and take the precaution of replacing all
encased single quotes with two single quotes:
strSql = "INSERT INTO ESR (ESR_JCN,ESR_PARCTAG)" _
& " VALUES (" & strJcn & ",'" & Replace (strParcTag, "'", "''") & "')"