Hi all
I have a DB that automatically imports an excel file and appends the data to a current table I have created. All working fine. The import currently deletes the first six rows as these weren't required - it's header information such as the date of the report. I'm firstly taking the full excel file into a temp database table. In that table I delete the first few rows and then append to the main data table.
A new requirement is in to now pick up and store the date. This is causing me issues as the date is in the header of the report and not in the core part of the data. I've attached a sanitized screen of the excel for reference.
Is there anyway I can:
- Pick up on the date in the 5th row? - I'm thinking I could assign the 4th row to a variable and pick out the substring of it to locate only the date part (remove 'Pricing Date:') . Would this be correct, is it possible and how would I do it?
- Once the date is picked up, can I add the date to a new 'Date' field in access and populate each record with the date? So the core data will have an additional field called Date containing the date in the header of the report?
Hope this makes sense!
Thanks
Donal