B
braka
I tried to execute SQL that was built thru some code.
SQL text is over 256 characters and this is a limit for String variable.
SQL sentence is cut on 256 character and the rest is lost.
Is there another varable that hold more then 256 that I can use.
Everything works fine if SQL is less then 256 so it can fit into sqlSQL
string (see bellow).
Dim strSQL As String
Set rstTemp = dbsTemp.OpenRecordset(strSQL, dbOpenSnapshot)
SQL text is over 256 characters and this is a limit for String variable.
SQL sentence is cut on 256 character and the rest is lost.
Is there another varable that hold more then 256 that I can use.
Everything works fine if SQL is less then 256 so it can fit into sqlSQL
string (see bellow).
Dim strSQL As String
Set rstTemp = dbsTemp.OpenRecordset(strSQL, dbOpenSnapshot)