none
ado mixed Data Force RRS feed

  • Question

  • Dear All,

    i import data vom an excelfile via ADODB.Connection

        Set cn = New ADODB.Connection
        cn.Provider = "Microsoft.ACE.OLEDB.12.0"
        cn.ConnectionString = "Data Source=" & File & ";Extended Properties=""Excel 12.0;HDR=NO;IMEX=1"""

    I put imex=1, because i have mixed data.

    If the first cell in a column is a number, and the next eight cells are null (empty) and the ninth cell is a text, data is lost.

    The connection drive obviosly decides that the columndata is in a numberformat and collects only numbers, all txt will be ignored.

    if the seventh cell is text everything will be collected. 

    How can i force the driver to overtake all data.

    Oliver

    Monday, February 18, 2019 5:23 PM

All replies

  • Hi Oliver Schulz,

    Thank you for posting here.

    What language do you use for? It seems like you use VB6.

    If you use VB6, you could post a new thread in StackOverFlow.

    https://stackoverflow.com/questions/tagged/vb6

    Best Regards,

    Wendy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, February 19, 2019 6:10 AM
  • Dear Wendy,

    Thank you!

    Tuesday, February 19, 2019 10:51 AM
  • Here is another resource for VB6

    http://www.vbforums.com/forumdisplay.php?1-Visual-Basic-6-and-Earlier


    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.
    VB Forums - moderator
    profile for Karen Payne on Stack Exchange, a network of free, community-driven Q&A sites

    Tuesday, February 19, 2019 6:04 PM
  • Since this not a C# question I;m moving your question out of this forum as it does not fit here or other forums here.

    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.
    VB Forums - moderator
    profile for Karen Payne on Stack Exchange, a network of free, community-driven Q&A sites

    Tuesday, February 19, 2019 6:05 PM