B
Brad
What is the Best Way to Insert a Large Number of Records With No Messages?
I posted a question yesterday, but after reading my post, I thought that it
would be good to better explain the issue that I am running into… sorry about
that.
Here is what I am trying to do with Access 2007 VBA.
Read a sequential input file with many records
Insert these records into an Access table after doing some manipulation of
the data
Display NO messages to the end-user except at the end of the input file
(because there are many records)
Because of a Referential Integrity constraint, some record inserts will
fail. When this happens, I need to write an “error record†to another Access
table, with NO message to the end-user at the time of the insert failure AND
I need to continue processing the remaining records in the input file.
The existing programs in the system already uses ADO, so I would prefer to
stay with ADO rather than DAO, unless there is no other choice.
It seems like this should be a fairly easy thing to do. I have spent a lot
of time reading and experimenting and cannot figure out how to do this.
An example would be most appreciated.
Thanks in advance for your help.
Brad
I posted a question yesterday, but after reading my post, I thought that it
would be good to better explain the issue that I am running into… sorry about
that.
Here is what I am trying to do with Access 2007 VBA.
Read a sequential input file with many records
Insert these records into an Access table after doing some manipulation of
the data
Display NO messages to the end-user except at the end of the input file
(because there are many records)
Because of a Referential Integrity constraint, some record inserts will
fail. When this happens, I need to write an “error record†to another Access
table, with NO message to the end-user at the time of the insert failure AND
I need to continue processing the remaining records in the input file.
The existing programs in the system already uses ADO, so I would prefer to
stay with ADO rather than DAO, unless there is no other choice.
It seems like this should be a fairly easy thing to do. I have spent a lot
of time reading and experimenting and cannot figure out how to do this.
An example would be most appreciated.
Thanks in advance for your help.
Brad