-
April 7th, 2012, 12:07 AM
#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
-
April 7th, 2012, 12:25 PM
#2
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.
-
April 9th, 2012, 12:40 AM
#3
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.
-
April 11th, 2012, 12:46 AM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|