Volver a la línea en el editor de VBA en Access
UnknowVBA
-
Usuario anónimo -
Usuario anónimo -
Bonjour,
I wish to return to the line when I make an SQL query in the editor but I can't... Here are the lines of code:
Line breaking takes place at this level but I have problems with quotes... : " & Str(JourFeriee_11) & "," & _
"& Str(JourFeriee_12) & "
Configuration: Windows 7 / Chrome 52.0.2743.116
I wish to return to the line when I make an SQL query in the editor but I can't... Here are the lines of code:
StrSQL1 = "INSERT INTO ...." & Str(JourFeriee_10) & ", " & Str(JourFeriee_11) & "," & _
"& Str(JourFeriee_12) & ", " & Str(JourFerieeTotalMois3) & "," " & Str(JourAutre1) & ", " & Str(JourAutre2) & ", " & Str(JourAutre3) & ", " & Str(JourAutre4) & ", " & Str(JourAutreTotalMois1) & ", " & Str(JourAutre5) & ", " & Str(JourAutre6) & ", " & Str(JourAutre7) & ", " & Str(JourAutre8) & ", " & Str(JourAutreTotalMois2) & ", " & Str(JourAutre9) & ", " & Str(JourAutre10) & ", " & Str(JourAutre11) & ", " & Str(JourAutre12) & ", " & Str(JourAutreTotalMois3) & ", " & Str(TotalGeneral) & ");"
Line breaking takes place at this level but I have problems with quotes... : " & Str(JourFeriee_11) & "," & _
"& Str(JourFeriee_12) & "
Configuration: Windows 7 / Chrome 52.0.2743.116
2 respuestas
-
Hola,
el salto de línea está bien, pero la estructura no es correctaStrSQL1 = "INSERT INTO ...." & Str(JourFeriee_10) & ", " & Str(JourFeriee_11) & "," & _ Str(JourFeriee_12) & ", " & Str(JourFerieeTotalMois3) & "," & _ Str(JourAutre1) & ", " & Str(JourAutre2) & ", " & Str(JourAutre3) & ", " & _ Str(JourAutre4) & ", " & Str(JourAutreTotalMois1) & ", " & Str(JourAutre5) & ", " & _ Str(JourAutre6) & ", " & Str(JourAutre7) & ", " & Str(JourAutre8) & ", " & _ Str(JourAutreTotalMois2) & ", " & Str(JourAutre9) & ", " & Str(JourAutre10) & ", " & _ Str(JourAutre11) & ", " & Str(JourAutre12) & ", " & Str(JourAutreTotalMois3) & ", " & Str(TotalGeneral) & ");"
mira esto:
consulta insert into
https://sql.sh/cours/insert-into -
Hola,
yo soy alérgico a estos & _...
Aquí está lo que hago, y es mucho más legible
StrSQL1 = "INSERT INTO ...." StrSQL1 StrSQL1 & 'Str(JourFeriee_10)' & " " & StrSQL1=StrSQL1 & Str(JourFeriee_11)
etc...
A+
Cuando Jimmy dice What'd I say
I love you baby
Es como quien diría
Toda la provincia canta en inglés