none
Excel Connectio Lost RRS feed

All replies

  • Hello,

    This forum is for VB.NET. I'm moving your question to the "Excel for developer" forum as the question is more related to Excel then C# (which there is a forum for too).

    In the mean time please reply with more details e.g. a small code example if there is code involved, if not explain how you are linking up to Excel and access.


    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

    Wednesday, March 29, 2017 10:41 AM
  • Thanx 
    Wednesday, March 29, 2017 12:26 PM
  • Hello,

    Do you link an excel file in Access?  How do you link and what is the connection string you are using?


    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.

    Thursday, March 30, 2017 3:22 AM
    Moderator
  •   string HDR;
      HDR = "YES";
     ConStr = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + fileFullPath + ";Extended Properties=\"Excel 12.0;HDR=" + HDR + ";IMEX=1\"";
    Friday, March 31, 2017 8:04 AM
  • Do you link an .xlsb file since you are using Excel 12.0?

    Please visit https://www.connectionstrings.com/excel/ to see the connection strings for Excel files.

    If you are connecting to an .xlsx file, it should be Extended Properties="Excel 12.0 Xml;HDR=YES;IMEX=1";


    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, April 4, 2017 2:26 AM
    Moderator