Stop calling it CSV format. CSV is a comma separated text file. You attached a .xlsx file which has a completely different format.
(Calling it a CSV format while it really is xslx only confused the issue)
Note: If you really DID get a SCLAB_01.CSV then you should say so directly because everything below isn't needed.(But you included a .xlsx file so I assume the lab really send you a .xlsx file !!!!)
You need to read the xlsx file (which is much harder than a CSV file) and append it to all the other results.
You can do that in 3 different ways.
1) use the ODBC connection Michael mentioned. But it needs some figuring out how to set it up correctly.
2) use the fpspreadsheet to read the file and append it to the database
3) use the fpspreadsheet to read the file and append it to another spreadsheet (the same each time). In that case you still have a xslx but it grows with each data-import.
Method 2 uses a real database (like Firebird or SQLite) and method 3 will just use a xlsx-file as a complete file where all the results are appended to.
Did you already try to install fpspreadsheet?
If you did, here is a small snippet to open the file and begin reading.
var
MyWorkbook: TsWorkbook;
MyWorksheet: TsWorksheet;
begin
MyWorkbook := TsWorkbook.Create;
try
MyWorkbook.ReadFromFile('Laboratroy_SCLAB_01.xlsx', sfOOXML);
MyWorksheet := MyWorkbook.GetFirstWorksheet;
ShowMessage(MyWorksheet.ReadText(1, 0));
finally
MyWorkbook.Free;
end;
end;
This can be adjusted to read all the result lines and add it to another complete result-workbook or add it to a database.