I have a a form where users import a spreadsheet. The form highlights any data that is not valid or needs to be cleaned up. Once all the data is good, they can press a button to import that data into a normalized table structure. This is all done in vba. The records are added to a table, and when they are, I need to add/update a calculated field. It needs to string together 2 different fields with a counter padded to 5 digits like this: "123456_00001_ABC" That counter is not based on the whole table. It is based on the count of items in that table that have the same 6 digit prefix (the first part of the concatenated string).
I tried a sql trigger, but that updates after the entire insert, not after each record is added. I'm looking for other ways, maybe in vba, to accomplish this.
If anyone has any suggestions, I would love to try them out. I'm not sure if explaining more of the fields would help or not, but I figured I would start with the basic needs and see where we can get to.
Thanks for any ideas!
misscrf
It is never too late to become what you could have been ~ George Eliot
I tried a sql trigger, but that updates after the entire insert, not after each record is added. I'm looking for other ways, maybe in vba, to accomplish this.
If anyone has any suggestions, I would love to try them out. I'm not sure if explaining more of the fields would help or not, but I figured I would start with the basic needs and see where we can get to.
Thanks for any ideas!
misscrf
It is never too late to become what you could have been ~ George Eliot