ADO-VB6-Excel Conection 
Author Message
 ADO-VB6-Excel Conection

How do you use ADO to connect to an Excel File and assign a field to a
text box. on a form?
Excel file is  layed out in columns  with headers at top of columns
like an Acess File.

I can do it with an Access file using OBDC drivers,conection string
and SQL command, but that doesnt seem to work for an excel file.

How do you do the same with a text file?

Thanks
CJK



Wed, 18 Jun 1902 08:00:00 GMT  
 ADO-VB6-Excel Conection
I have an Excel file problem also.  At the moment I am creating Excel file
using .CSV in the file name and writing to it with a "write" command but I
would like to create a real  Excel file.  I am using VB6
Thanks,
Jean-Georges
Quote:

> How do you use ADO to connect to an Excel File and assign a field to a
> text box. on a form?
> Excel file is  layed out in columns  with headers at top of columns
> like an Acess File.

> I can do it with an Access file using OBDC drivers,conection string
> and SQL command, but that doesnt seem to work for an excel file.

> How do you do the same with a text file?

> Thanks
> CJK



Wed, 18 Jun 1902 08:00:00 GMT  
 ADO-VB6-Excel Conection
Hi,

You might visit the Control Panel ODBC32 Icon and then create a DSN that
links to the Excel file. Then this can be used to make an ADO Connection.

Ranny

Quote:

> How do you use ADO to connect to an Excel File and assign a field to a
> text box. on a form?
> Excel file is  layed out in columns  with headers at top of columns
> like an Acess File.

> I can do it with an Access file using OBDC drivers,conection string
> and SQL command, but that doesnt seem to work for an excel file.

> How do you do the same with a text file?

> Thanks
> CJK



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. VB5 or VB6 Data Control conection to Office 2000 Access

2. ADO conection to SQL Server

3. Conection ADO emulating by code a Gallery DSN

4. ADO Data Control cannot connect to Excel Spreadsheet in VB6

5. Opening Excel sheet with ADO and VB6?

6. Export to Excel from ADO recordset in VB6

7. Running VBA code in EXcel from VB6 using EXcel Objects

8. changing Excel version in an Excel-VB6.0-SQLServer7.0 applcation

9. ADO in VB6 Compared to ADO in AsP

10. Help with ODBC Conection Code

11. Conection to IMAP with CDO

12. Persistent conection?

 

 
Powered by phpBB® Forum Software