We have a flat file that contains payroll information. I know how to import the file into a table using several methods. I can set this up so that a paytech can click a 'magic button' and fire off the import. No problem there.
What I need to do is to setup the system so that the data is only imported once for any given file. For example: The paytech gets a file in the morning and runs the import. The client comes back and reports that there were issues with the file they sent so they send a new file for the day. When the tech runs the import again I need the previously 'bad' import to be removed. I could simply make a datestamp and remove any with the same before I import but...here's the kicker...the client could send a supplemental payroll later in the day with more valid information. In that instance I need the previous data to be kept and the new information added.
I just can't seem to put my mind around a solution. Any suggestions are appreciated.
Thanks.
Tim Roop
"If you can do something about it, why waste time getting upset? If you can't do anything about it, why bother getting upset on top of it? -Shantideva
What I need to do is to setup the system so that the data is only imported once for any given file. For example: The paytech gets a file in the morning and runs the import. The client comes back and reports that there were issues with the file they sent so they send a new file for the day. When the tech runs the import again I need the previously 'bad' import to be removed. I could simply make a datestamp and remove any with the same before I import but...here's the kicker...the client could send a supplemental payroll later in the day with more valid information. In that instance I need the previous data to be kept and the new information added.
I just can't seem to put my mind around a solution. Any suggestions are appreciated.
Thanks.
Tim Roop
"If you can do something about it, why waste time getting upset? If you can't do anything about it, why bother getting upset on top of it? -Shantideva