Access 97
I have a text file that cannot be imported using Access built in import wizard (or linked to) so I wrote my own classes to parse the file manually using an importspec and append the data to a new table.
It works but is slow. I am using docmd.runsql and passing an INSERT statement. Access only lets me pass one Insert at a time. Setting the UseTransaction to false doesn't help.
I have also tried currentdb.execute with similar slow performance.
I've tried to figure out a way to use acCmdPasteAppend as it is very fast, but no luck.
I haven't yet tried putting the text data into a recordset and then appending it as I have read that process is even slower...
Does anyone have any progmatic techniques that can insert records reasonably fast into access? If I could duplicate the code behind the acCmdPasteAppend function I would be ok I think, but I cannot find anything that explains what that is really doing.
Thanks for any insights,
Joel
I have a text file that cannot be imported using Access built in import wizard (or linked to) so I wrote my own classes to parse the file manually using an importspec and append the data to a new table.
It works but is slow. I am using docmd.runsql and passing an INSERT statement. Access only lets me pass one Insert at a time. Setting the UseTransaction to false doesn't help.
I have also tried currentdb.execute with similar slow performance.
I've tried to figure out a way to use acCmdPasteAppend as it is very fast, but no luck.
I haven't yet tried putting the text data into a recordset and then appending it as I have read that process is even slower...
Does anyone have any progmatic techniques that can insert records reasonably fast into access? If I could duplicate the code behind the acCmdPasteAppend function I would be ok I think, but I cannot find anything that explains what that is really doing.
Thanks for any insights,
Joel