Will this VB 6 code still work on a computer without Microsoft Access 2007?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Will this VB 6 code still work on a computer without Microsoft Access 2007?

  1. #1
    Join Date
    Apr 2012
    Posts
    1

    Will this VB 6 code still work on a computer without Microsoft Access 2007?

    Something along the lines of:
    cn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=stuff.accdb;Persist Security Info=False"

    This is for a school project. I'm trying to access a database called stuff.accdb from my VB project.
    The problem is, stuff.accdb is a 2007 Microsoft Access file, and on the school computers, there is only Microsoft Access 2003. Can visual basic still obtain information from this file regardless?
    (same version of VB 6)

    This is due after the break, and so i cannot access the school computers.
    Please give some insight! thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,982

    Re: Will this VB 6 code still work on a computer without Microsoft Access 2007?

    Probably easiest to just EXPORT one table, and IMPORT it at school.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008
    Location
    WV
    Posts
    4,825

    Re: Will this VB 6 code still work on a computer without Microsoft Access 2007?

    I have not actually worked with Access 2007 or later but if it holds true to form then all you need is the database file and your program no need to have Access on the computer at all to run your program.
    Always use [code][/code] tags when posting code.

  4. #4
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: Will this VB 6 code still work on a computer without Microsoft Access 2007?

    You just need the right version of MDAC for the DB your trying to access...
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center