Hi everybody,
I'm new to this forum and not very experienced with VBA or Access. Let me describe my problem:
I want to append records to my customer table (Customer No is PK) on a monthly basis. I am taking these customer records from a .CSV file and we speak about 300 records here. As expected most of the incoming customers exist in my customer table and are therefore rejected due to PK violation. So far no problem. Now: I would have expected clear message from Access what went in successfully and what not, not just sums.
My defined goal is to achieve a list (either a table or an external log file) where this information is clearly given, i.e. for EACH record I want to have an entry in that log file if it the record appended succesfully or not, and if not, what problem and which field caused the problem. I find the standard upcoming window how many records were 'lost' not very helpful.
I browsed through lots of topics in your (by the way EXCELLENT) forum but did not find the 100 % answer. One difficulty seems to me that Access considers key duplications not as an error, therefore a real error trapping will not work.
I hope somebody can give me a shove into the right direction as this must be a common requirement (otherwise, how do I control 10,000 records instead of 300 ?).
Thanks in advance.
Wolfgang
I'm new to this forum and not very experienced with VBA or Access. Let me describe my problem:
I want to append records to my customer table (Customer No is PK) on a monthly basis. I am taking these customer records from a .CSV file and we speak about 300 records here. As expected most of the incoming customers exist in my customer table and are therefore rejected due to PK violation. So far no problem. Now: I would have expected clear message from Access what went in successfully and what not, not just sums.
My defined goal is to achieve a list (either a table or an external log file) where this information is clearly given, i.e. for EACH record I want to have an entry in that log file if it the record appended succesfully or not, and if not, what problem and which field caused the problem. I find the standard upcoming window how many records were 'lost' not very helpful.
I browsed through lots of topics in your (by the way EXCELLENT) forum but did not find the 100 % answer. One difficulty seems to me that Access considers key duplications not as an error, therefore a real error trapping will not work.
I hope somebody can give me a shove into the right direction as this must be a common requirement (otherwise, how do I control 10,000 records instead of 300 ?).
Thanks in advance.
Wolfgang