chris-uk-lad
Registered User.
- Local time
- Today, 07:26
- Joined
- Jul 8, 2008
- Messages
- 271
Hi all,
I have an xls file i want to import into a table in my access database, but i need all imported data types to be text and no primary key included. I know you can achieve this with a txt/csv document but need to ensure this with this xls.
atm im using the simple command to import in the document
I hear you can do this then run through a query but ive never ran a query via code before.
Many Thanks
I have an xls file i want to import into a table in my access database, but i need all imported data types to be text and no primary key included. I know you can achieve this with a txt/csv document but need to ensure this with this xls.
atm im using the simple command to import in the document
Code:
DoCmd.TransferSpreadsheet , acSpreadsheetTypeExcel3, "NewData", FilePath & "update.xls", True
I hear you can do this then run through a query but ive never ran a query via code before.
Many Thanks