|
-
Aug 30th, 2000, 11:22 AM
#1
Thread Starter
Lively Member
Does anyone know why when I'm using ADO to read the Excel file and if the column in Excel file is numeric, it returns nulls? It works fine for Text column. Is this a bug in ADO?
VB6(SP4), QB4.5, PDS7.0, IBM-U2
-
Aug 30th, 2000, 11:28 AM
#2
Lively Member
Try this
'*******First U have to go to the project references and '******select the object library 9.0 or 8.0
Option Explicit
Dim xlsApp As Excel.Application
Private Sub Command1_Click()
Set xlsApp = Excel.Application
With xlsApp
'Show Excel
.Visible = True
'Create a new workbook
.Workbooks.Add
'Put text in to the cell that is selected
.ActiveCell.Value = "Hi"
'Put text into A3 regardless of the selected cell
.Range("A3").Value = "This is an example of connecting to Excel"
'************
-
Aug 30th, 2000, 11:51 AM
#3
Thread Starter
Lively Member
I don't want to use Excel Object. That why I use ADO.
VB6(SP4), QB4.5, PDS7.0, IBM-U2
-
Aug 31st, 2000, 07:30 PM
#4
Frenzied Member
Bear in mind ADO is still a work in progress...
-
Sep 5th, 2000, 09:50 AM
#5
Thread Starter
Lively Member
Is this a bug in Microsoft ADO? If it is a bug with ADO, why don't they fix it or this is some sort of marketing scheme where in order for you to access Excel file you must have Excel installed. Does anyone know where I can get to the ADO site and read or post some messages? Thanks!
VB6(SP4), QB4.5, PDS7.0, IBM-U2
-
Sep 6th, 2000, 11:50 AM
#6
Thread Starter
Lively Member
Does anyone has any ideas?
VB6(SP4), QB4.5, PDS7.0, IBM-U2
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
|