Share via

Table linked to csv file

Anonymous
2014-10-16T07:42:08+00:00

Hi

In Access, I have a table that is linked to a .csv file saved on my hard disk.  The .csv file has a header row, and when I built the linked table I had indicated that there is a header row.

There are several views built on this table.

In my source .csv file, I need to insert a column in the middle of existing columns.  How must I go about changing my Access table so that the new column is recognized and all the other columns are appropriately shifted without having any impact on existing queries?

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

8 answers

Sort by: Most helpful
  1. Anonymous
    2014-10-17T07:43:06+00:00

    Hi Scott

    I will try to find how to run a manual link and check the input specs.  In the meantime if you read this post and have some time to explain how to do it then please let me know, as I am not yet an intensive user of Access and so don't know how / where to find certain options.

    Many thanks for your help.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2014-10-16T22:27:16+00:00

    Whenever I have a link to an external datasource (of any type, Access, SQL, csv or whatever) and make a structural change to the source, I now habitually DELETE the table link in Access, and use the External Data dialog to create a new link. It seems to be more reliable than trying to fix the link, and it's no more difficult than using the Linked Table Manager (which does NOT always catch the structure change).

    Was this answer helpful?

    0 comments No comments
  3. ScottGem 68,830 Reputation points Volunteer Moderator
    2014-10-16T14:06:49+00:00

    Run a manual link and Check the Input Specification. That may have to be adjusted.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2014-10-16T13:09:33+00:00

    Hi Scottgem

    Access picked up the "contents" of the column.  But the heading was ignored.  Also, it did not pick up the last column.  So somewhere it has an image on the number of columns to pick up - and does not pick up dynamically each time all the columns.

    Was this answer helpful?

    0 comments No comments
  5. ScottGem 68,830 Reputation points Volunteer Moderator
    2014-10-16T12:04:20+00:00

    Access will automatically pick up the added field in the CSV file. So you don't need to do anything to the linked table. 

    You will need to rewrite your queries to add the new field.

    Was this answer helpful?

    0 comments No comments