Using VBA, I'm trying to loop through a dao.recordset based on a csv file. The file contains a zipcode field that may contain 5 digits like 11111 or sometimes a plus 4 like 11111-1111. The field in the recordset is being formatted as numeric, and I am getting an overflow error when it loops to a record with a 11111-1111 entry.
I have tried importing or linking the file via transfer spreadsheet and I get the same error. I have tried converting the file to xls first and again I get the same result/error.
This file will have a different set of fields each time I import it, so I can't set up an import specification. I've looked all over and can't find a solution.
The closest that I have come is using the Open File for Input method which unfortunately I am unfamiliar with. Ultimately, I will be parsing and manipulating this data for use elsewhere, and an all text table from the csv file would work.
Can someone help me with a function that will turn a csv file into a table and force all fields to be text?
Thanks,
Sup
I have tried importing or linking the file via transfer spreadsheet and I get the same error. I have tried converting the file to xls first and again I get the same result/error.
This file will have a different set of fields each time I import it, so I can't set up an import specification. I've looked all over and can't find a solution.
The closest that I have come is using the Open File for Input method which unfortunately I am unfamiliar with. Ultimately, I will be parsing and manipulating this data for use elsewhere, and an all text table from the csv file would work.
Can someone help me with a function that will turn a csv file into a table and force all fields to be text?
Thanks,
Sup