G
Guest
Using a code example from Dev Ashish on the MPVS website (Simplify action
queries in code), I'm attempting (being the operative word) to load a
recordset when opening my form pulling the sql code stored in a table. The
table field (SQLString) datatype is set as "Memo", but the code truncates the
sql string (586 characters). The code is -
Set db = CurrentDb
Set rs = db.OpenRecordset("Select * from tblSQL where" _
& " CalledFromProc='StoreSchedule'", dbOpenDynaset)
With rs
strSQL = adhHandleQuotes(!SQLString)
db.Execute strSQL, dbFailOnError
End With
I'm using a DAO recordset. I've tried it with the function
"adhHandleQuotes" and without, but the error box shows the sql string
truncated both ways. Any suggestions? Thanks in advance for the help!
queries in code), I'm attempting (being the operative word) to load a
recordset when opening my form pulling the sql code stored in a table. The
table field (SQLString) datatype is set as "Memo", but the code truncates the
sql string (586 characters). The code is -
Set db = CurrentDb
Set rs = db.OpenRecordset("Select * from tblSQL where" _
& " CalledFromProc='StoreSchedule'", dbOpenDynaset)
With rs
strSQL = adhHandleQuotes(!SQLString)
db.Execute strSQL, dbFailOnError
End With
I'm using a DAO recordset. I've tried it with the function
"adhHandleQuotes" and without, but the error box shows the sql string
truncated both ways. Any suggestions? Thanks in advance for the help!