Share via

Access - change field names programmatically ?

Anonymous
2012-01-17T23:07:01+00:00

Every month I import data from Excel into access - several field names (text format) need to have "GL"  in front of the name - instead of Sales, I have to go into the design view and change Sales to GLSales.  Is there a way I can do this programmatically ?  I could write a macro on the Excel side, but I would prefer to do it in Access - is there a way this could be done In Access

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

Answer accepted by question author

Anonymous
2012-01-18T01:18:19+00:00

Every month I import data from Excel into access - several field names (text format) need to have "GL"  in front of the name - instead of Sales, I have to go into the design view and change Sales to GLSales.  Is there a way I can do this programmatically ?  I could write a macro on the Excel side, but I would prefer to do it in Access - is there a way this could be done In Access

I'd be inclined to link to the spreadsheet, rather than importing it directly, and then use an append query to copy its data into an existing Access table with the field names that I want.  Before the import, I would use a delete query to delete the records in the Access table so that it will be empty before the import.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful