davidd31415
Programmer
One last question for the day...
How might I perform an SQL query longer than 255 characters in VBA (i'm trying to do an INSERT that is much longer).
I've tried placing the query in separate strings and concatenating them together like this:
Call ErrorLogDB.Execute(sql1 & sql2 & sql3, dbFailOnError)
with no luck.
I'm think there might be a way to do this using a recordset object but i'm not sure on the exact code...
so far i have
with myRS
.AddNew
.Fields("fieldname") = fieldstring
.Update
End With
myRS.Close
If this will work, what do I need before it?
set myrs = db.... ?
Thanks,
David
How might I perform an SQL query longer than 255 characters in VBA (i'm trying to do an INSERT that is much longer).
I've tried placing the query in separate strings and concatenating them together like this:
Call ErrorLogDB.Execute(sql1 & sql2 & sql3, dbFailOnError)
with no luck.
I'm think there might be a way to do this using a recordset object but i'm not sure on the exact code...
so far i have
with myRS
.AddNew
.Fields("fieldname") = fieldstring
.Update
End With
myRS.Close
If this will work, what do I need before it?
set myrs = db.... ?
Thanks,
David