Hi,
I was wondering if anyone could help me plz. I have a very basic access db that contains one table, sample below:-
USN (Primary Key)
MO Code
Received
Captured
The problem I have is the following, each day I have to import a text file that includes a list of USNs with their corresponding MO Codes field either having an 'ok' value or no value. If the MO Code has an 'ok' value everything is fine, however the following I will be importing a new csv file. This new csv file will contain a list of USNs and it is likely that the USN from the previously day will now have an MO Code value of 'ok'. When I try to import the csv file it won't update/overwrite the existing USN because it already exists. I suppose what I need is a way to check the csv file before importing and if the USN exists in the csv file with a value of 'ok' then it should overwrite the null value in the MO Code field in the database.
I don't know if what i said is clear as it's a little bit difficult to explain. I would be grateful for any advice, even if you can point me in the what direction to start in as I really don't know where to start?. I have a little bit of experience of Access from my college days, can access perform this operation or do I have to learn some VB?.
I was wondering if anyone could help me plz. I have a very basic access db that contains one table, sample below:-
USN (Primary Key)
MO Code
Received
Captured
The problem I have is the following, each day I have to import a text file that includes a list of USNs with their corresponding MO Codes field either having an 'ok' value or no value. If the MO Code has an 'ok' value everything is fine, however the following I will be importing a new csv file. This new csv file will contain a list of USNs and it is likely that the USN from the previously day will now have an MO Code value of 'ok'. When I try to import the csv file it won't update/overwrite the existing USN because it already exists. I suppose what I need is a way to check the csv file before importing and if the USN exists in the csv file with a value of 'ok' then it should overwrite the null value in the MO Code field in the database.
I don't know if what i said is clear as it's a little bit difficult to explain. I would be grateful for any advice, even if you can point me in the what direction to start in as I really don't know where to start?. I have a little bit of experience of Access from my college days, can access perform this operation or do I have to learn some VB?.