Add Header & Trailer Records to Access Table

Tommy 1 Reputation point
2020-11-13T06:00:48.66+00:00

Good day,

I'm relatively new to access queries and was tasked with preparing a csv file for a client.

I got a csv file without the Header & Trailer Records and I need to add it to the file.

I have imported the csv file into access as a table but am unsure as to how to continue to add the header & trailer records to the table before exporting it again as csv.

The Header Record should contain the Header record ID, date, file name and the detail record count.

The Trailer Record should contain the trailer record ID, date, file name and detail record count.

How would I go about adding these records to my existing table?

Should I create 3 different tables with this info and then merge it somehow?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
38,777 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.