Results 1 to 6 of 6

Thread: ADO and Excel???

  1. #1

    Thread Starter
    Lively Member quadoc's Avatar
    Join Date
    Jan 1999
    Location
    Ga, USA
    Posts
    83

    Question

    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

  2. #2
    Lively Member
    Join Date
    Aug 2000
    Location
    México, D.F.
    Posts
    64
    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"

    '************

  3. #3

    Thread Starter
    Lively Member quadoc's Avatar
    Join Date
    Jan 1999
    Location
    Ga, USA
    Posts
    83
    I don't want to use Excel Object. That why I use ADO.
    VB6(SP4), QB4.5, PDS7.0, IBM-U2

  4. #4
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105
    Bear in mind ADO is still a work in progress...

  5. #5

    Thread Starter
    Lively Member quadoc's Avatar
    Join Date
    Jan 1999
    Location
    Ga, USA
    Posts
    83
    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

  6. #6

    Thread Starter
    Lively Member quadoc's Avatar
    Join Date
    Jan 1999
    Location
    Ga, USA
    Posts
    83
    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
  •  



Click Here to Expand Forum to Full Width