|
-
October 11th, 1999, 10:38 AM
#1
ODBC for Text Driver
I've come across code in a previous job SQL code that selects data from a flat file (SELECT * FROM filename) using rdo and an ODBC for text driver but I cannot recreate this using good old DAO. Can anyone provide me with some code to do this because it is really iratating me!
-
October 11th, 1999, 10:45 AM
#2
Re: ODBC for Text Driver
you can do the same thing with DAO using the ODBC driver for text files.
You need to supply a SCHEMA.INI file though.It basically describes the structure of your text file.
here is a sample of one of my projects of a schema.ini:
[test.txt]
colnameheader=false
format=tabdelimited
characterset=ansi
col1=name char
col2=wert short
put the schema.ini in the same directory as the text file.
-
October 12th, 1999, 04:54 AM
#3
Re: ODBC for Text Driver
Thanx for the reply, but I need a little more, the code used before allowed connection using the rdo .connect property, but DAO doesn't support this. If you have some sample code then I would really appreciate it. Please email to [email protected]
Steve
-
June 25th, 2004, 02:29 AM
#4
Re: Re: ODBC for Text Driver
Originally posted by Lothar Haensler
:
:
:
put the schema.ini in the same directory as the text file.
How do you "link" the schema.ini file in your VB-code? I'm having that problem.
-
June 26th, 2004, 02:43 AM
#5
check this to know how to conenct to text files.
-
June 26th, 2004, 08:04 AM
#6
not this
Originally posted by hspc
check this to know how to conenct to text files.
hspc,
thanks for your help but this isn't what I'm looking for. Found out thru MSDN that you only need to place the schema.ini file together with your data file.
regards.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|