I have had a good search around the forum, but can't find a solution to this one. Any help, or links to a solution would be appreciated.
I am using code to import an Excel CSV file into a pre-formatted table.
My problem is the csv file is automatically generated each day, and has varying amounts of blank columns depending on the orders being received by my customer.
I could have six of seven blank columns between the first section of date, and the last section.
When I run the code through a macro, I get the error "output destination error "noname"."
I entered a column on my table called "noname", which resolved the first blank column, but as it tries to import the second blank column, I get the error "Duplicate output destination error "noname"."
I need to use column headers, so how can I tell the system to ignore any blank columns?
Thanks in Advance.
Adam.
I am using code to import an Excel CSV file into a pre-formatted table.
My problem is the csv file is automatically generated each day, and has varying amounts of blank columns depending on the orders being received by my customer.
I could have six of seven blank columns between the first section of date, and the last section.
When I run the code through a macro, I get the error "output destination error "noname"."
I entered a column on my table called "noname", which resolved the first blank column, but as it tries to import the second blank column, I get the error "Duplicate output destination error "noname"."
I need to use column headers, so how can I tell the system to ignore any blank columns?
Thanks in Advance.
Adam.
Function import_test()
On Error GoTo import_test_Err
DoCmd.TransferText acImportDelim, "", "imported_ordersa", "c:\rx002203.csv", True
import_test_Exit:
Exit Function
import_test_Err:
MsgBox Error$
Resume import_test_Exit
End Function