I have a long string similar to the following
Dim sSql2 as String
sSql2 = "INSERT INTO MyTable ( Var1, ..., var13)SELECT " & T1 & " as Var1, ... & T13 & " as Var13;"
DoCmd.RunSQL sSql2
The resulting value of sSql2 is approximately 400 characters.
Access truncates the string to approximately 254 characters resulting into an error with the insert into statement.
I have tried
Dim sSql2 as string * 512
with the same results.
I would appreicate any help.
Thanks
lynns
Dim sSql2 as String
sSql2 = "INSERT INTO MyTable ( Var1, ..., var13)SELECT " & T1 & " as Var1, ... & T13 & " as Var13;"
DoCmd.RunSQL sSql2
The resulting value of sSql2 is approximately 400 characters.
Access truncates the string to approximately 254 characters resulting into an error with the insert into statement.
I have tried
Dim sSql2 as string * 512
with the same results.
I would appreicate any help.
Thanks
lynns