Bonjour,
J'ai le même pb. Ex de mon code :
Dim sQuery as String
sQuery = "INSERT INTO " & cTableOrganisation sQuery = sQuery & " ( " sQuery = sQuery & cOrganisationTypeOrganisationID sQuery = sQuery & " , " & cOrganisationNom sQuery = sQuery & " , " & cOrganisationSigle sQuery = sQuery & " , " & cOrganisationAdresse1 sQuery = sQuery & " , " & cOrganisationAdresse2 If (piOrganisationVilleID > 0) Then sQuery = sQuery & " , " & cOrganisationVilleID sQuery = sQuery & " , " & cOrganisationTelephone sQuery = sQuery & " , " & cOrganisationFax sQuery = sQuery & " , " & cOrganisationMail sQuery = sQuery & " , " & cOrganisationSite sQuery = sQuery & " , " & cOrganisationCommentaire sQuery = sQuery & " )" sQuery = sQuery & " VALUES ( " sQuery = sQuery & " " & piOrganisationTypeOrganisationID & " " sQuery = sQuery & " , '" & sOrganisationNomTmp & "' " sQuery = sQuery & " , '" & psOrganisationSigle & "' " sQuery = sQuery & " , '" & psOrganisationAdresse1 & "' " sQuery = sQuery & " , '" & psOrganisationAdresse2 & "' " If (piOrganisationVilleID > 0) Then sQuery = sQuery & " , " & piOrganisationVilleID & " " sQuery = sQuery & " , '" & psOrganisationTelephone & "' " sQuery = sQuery & " , '" & psOrganisationFax & "' " sQuery = sQuery & " , '" & psOrganisationMail & "' " sQuery = sQuery & " , '" & psOrganisationSite & "' " sQuery = sQuery & " , '" & psOrganisationCommentaire & "' " sQuery = sQuery & " )"
Hé ben à la fin, je n'ai pas toute ma requête dans sQuery On dirait bien qu'il y a une limitation. Pourtant j'ai déclaré une chain de longueur variable non?
Merci Kim
|