Snailspace
Board Regular
- Joined
- Jan 28, 2009
- Messages
- 56
Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
I’m trying to pull some information in from a csv file with the following code.<o></o>
<o></o>
It looks like it is ‘guessing’ the data type as the majority of items in [Doc No] are numbers, however a few are text and these get omitted from the results.<o></o>
Is there a way to define the field as text when making the SQL statement?<o></o>
Cheers SP
I’m trying to pull some information in from a csv file with the following code.<o></o>
Rich (BB code):
SQL_OpenItems = "SELECT *" & _<o:p></o:p>
" FROM Open_Invoices.csv" & _<o:p></o:p>
" Where [Acc No]='" & strAccNo1 & "'" & _<o:p></o:p>
" OR [Acc No]= '" & strAccNo2 & "'" & _<o:p></o:p>
" ORDER BY [Acc No], [Invoice Date], [Doc No]"<o:p></o:p>
It looks like it is ‘guessing’ the data type as the majority of items in [Doc No] are numbers, however a few are text and these get omitted from the results.<o></o>
Is there a way to define the field as text when making the SQL statement?<o></o>
Cheers SP