Hi,
I can't figure out what I' doing wrong.
This code works: It loads 5,000 records into the table
CurrentDb.Execute "INSERT INTO OTCBU ([seq#],[datedaily],[RUT] )VALUES (" & reccount & ",#" & xDateDaily & "#, " & xrut & ");"
--------------------------------------------------------------------------
When I try to concatenate the statement as a string and execute it, it does nothing.
mysqlstring = "Insert into OTCBU "
mysqlstring = mysqlstring & " ([seq#],[datedaily], [rut])"
mysqlstring = mysqlstring & " VALUES (" & reccount & ", #" & xDateDaily & "#, " & xrut & " );"
CurrentDb.Execute mysqlstring
CurrentDb.Execute mysqlstring
I can't figure out what I' doing wrong.
This code works: It loads 5,000 records into the table
CurrentDb.Execute "INSERT INTO OTCBU ([seq#],[datedaily],[RUT] )VALUES (" & reccount & ",#" & xDateDaily & "#, " & xrut & ");"
--------------------------------------------------------------------------
When I try to concatenate the statement as a string and execute it, it does nothing.
mysqlstring = "Insert into OTCBU "
mysqlstring = mysqlstring & " ([seq#],[datedaily], [rut])"
mysqlstring = mysqlstring & " VALUES (" & reccount & ", #" & xDateDaily & "#, " & xrut & " );"
CurrentDb.Execute mysqlstring
CurrentDb.Execute mysqlstring