I did try that and the file was not tabular. Access was not able to import. I can open the .dif file and save as xls, but I am trying to have this process run as a timed event to append values in the table.
Main Topics
Browse All TopicsMy business system exports data to a .dif file. I am able to open the .dif file in excel and everything is properly formatted.
I am trying to append this .dif file to an Access 2007 table. The import wizzard does not recognize .dif files.
The source is parts.dif and the Access table is tblParts.
Is there a VB code to append a .dif file to a table?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
These are the steps required:
On your Form, make a command button called cmd_ReadExcel
copy and paste the code below, in your VBA.
what this will do:
1. it open excel in a hidden mode,
2. it will read the file C:\Parts.dif,
3. it will delete the first row of it (this is the column names),
4. it will save this file to C:\Parts.csv (which Access can read and import),
This next part is, the code will call an append query code:
call MaintainTransactionData
BUT you will have to modify the code, with the correct Table name, and the field names (if you already have an append query ready, go to view > SQL, and you can copy the SQL Append query code).
Please note the field names, table name, and the path of C;\Parts.dif
good luck in your program :)
jaffer
Business Accounts
Answer for Membership
by: jjafferrPosted on 2009-11-06 at 09:33:13ID: 25761147
if you change the file name to .txt
try if Access will open it and you to append it.
jaffer