G
Guest
Here is the situation I am stuck in. I have to import "txt" files on a regular basis. I have set up access to do this automatically. I now have a new problem. I am being asked if we can update more often. Normally I update once ever month. Now I need to update once every week. Doing this will create a problem because the "txt" files only get reset once a month, thus lots of duplicate data. The only way I have come up to take care of this, is something that I don't know how to do
I can't simply use an append query that removes duplicates because there may be some duplicates that are valid. What I think I can do but need some help on is, I have set up a blank table called "ImportData" to import the new data into. I have about 18 fields but two that I need to look at, these are a field for Month/Year and Location. If I can somehow get
the value from the month/year field (these will be the same for each record because these are monthly reports
the value from the location field (these will be the same for each record since there is a seperate file for each location
Then I will need to use these two value in the "StoredData" table. I will need to delete any record that has these month/year and location values, then I can append the value from the "ImportData" table to the "StoredData" table.
This is at least my thought process on how I can do this, but I am not sure how or if this can be done. I could really use some help on this one
Thanks
Mike Altma
V.P. Operation
The Competitive Edge
I can't simply use an append query that removes duplicates because there may be some duplicates that are valid. What I think I can do but need some help on is, I have set up a blank table called "ImportData" to import the new data into. I have about 18 fields but two that I need to look at, these are a field for Month/Year and Location. If I can somehow get
the value from the month/year field (these will be the same for each record because these are monthly reports
the value from the location field (these will be the same for each record since there is a seperate file for each location
Then I will need to use these two value in the "StoredData" table. I will need to delete any record that has these month/year and location values, then I can append the value from the "ImportData" table to the "StoredData" table.
This is at least my thought process on how I can do this, but I am not sure how or if this can be done. I could really use some help on this one
Thanks
Mike Altma
V.P. Operation
The Competitive Edge