B
Butter
I am inporting a txt-file into a temp table. ([MyTempTable])
I there modify it a little before I finally send it over to the "real"
table. ([MyRealTable])
Now, to be sure that the records in the file has not been imported before, I
want to delete the records in [MyRealTable] if they exist in [MyTempTable]
before actually moving the records to [MyRealTable].
The field that I would like to check this with is [txtInvoiceNo].
Since it is a "Line-table" (Lines connected to the Invoice table) there will
be several records containing the same value in [txtInvoiceNo].
So, for each line in [MyTempTable]![txtInvoiceNo] I would like to delete all
records in [MyRealTable] that has the same value in the field
[txtInvoiceTable].
Feel that I am not good enought to write a loop of my own with the above
criteria, so I would really appreciate some assistance here.
Thanks in advance.
/K
I there modify it a little before I finally send it over to the "real"
table. ([MyRealTable])
Now, to be sure that the records in the file has not been imported before, I
want to delete the records in [MyRealTable] if they exist in [MyTempTable]
before actually moving the records to [MyRealTable].
The field that I would like to check this with is [txtInvoiceNo].
Since it is a "Line-table" (Lines connected to the Invoice table) there will
be several records containing the same value in [txtInvoiceNo].
So, for each line in [MyTempTable]![txtInvoiceNo] I would like to delete all
records in [MyRealTable] that has the same value in the field
[txtInvoiceTable].
Feel that I am not good enought to write a loop of my own with the above
criteria, so I would really appreciate some assistance here.
Thanks in advance.
/K