| | |
Help with csv import to Access table
Please support our MS Access and FileMaker Pro advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Feb 2009
Posts: 29
Reputation:
Solved Threads: 0
Hello,
I have an access table where I have to import a csv file.
I have a very simple code in the Click _ Event Sub.
However it seems the code is ok, file gets imported but I get a separate table with errors in import.
In that table two fields are specified as error fileds.
The fields data type is numeric and I have set the filed definition in the table as number for both. I tried saving the problem fileds in the csv file as text and then in design view changed the fileds type to text. That did not work too.
What can I do to prevent a second "error" table to be created and the csv file to get imported in the access table ok ?
Here is my code:
Thanks in advance
I have an access table where I have to import a csv file.
I have a very simple code in the Click _ Event Sub.
However it seems the code is ok, file gets imported but I get a separate table with errors in import.
In that table two fields are specified as error fileds.
The fields data type is numeric and I have set the filed definition in the table as number for both. I tried saving the problem fileds in the csv file as text and then in design view changed the fileds type to text. That did not work too.
What can I do to prevent a second "error" table to be created and the csv file to get imported in the access table ok ?
Here is my code:
Option Compare Database Private Sub Command0_Click() DoCmd.TransferText acImportDelim, "File Import Specification", "File", "C:\File.csv", 0 End Sub
Thanks in advance
•
•
Join Date: Jan 2008
Posts: 44
Reputation:
Solved Threads: 3
0
#3 Oct 10th, 2009
So you actually created an import specification which is called "File Import Specification?"
Perhaps if you haven't figured it out yet and want to send me your database file and your csv file, I can see what is up.
I can PM you my email address if you wish. Let me know.
Perhaps if you haven't figured it out yet and want to send me your database file and your csv file, I can see what is up.
I can PM you my email address if you wish. Let me know.
Bob Larson, Access MVP
____________________________________
For Quick Tutorials and Samples for Microsoft Access: BTAB Development
____________________________________
For Quick Tutorials and Samples for Microsoft Access: BTAB Development
![]() |
Similar Threads
- Add data from Excel to Access Table (Visual Basic 4 / 5 / 6)
- Add Column to Access Table with Macro (MS Access and FileMaker Pro)
- Error encountered while searching for data from access table (Visual Basic 4 / 5 / 6)
- Importing Access Table into Execl sheet (VB.NET)
- Conversion of CSV file to hash table (Perl)
- How to set permission to access a table on another database? (MS SQL)
- drop down list in VB6 from Access table (Visual Basic 4 / 5 / 6)
- printing an access table in VB6 (Visual Basic 4 / 5 / 6)
Other Threads in the MS Access and FileMaker Pro Forum
- Previous Thread: Display fields in calendar like form
- Next Thread: MS Access 2003 & 2007
| Thread Tools | Search this Thread |





