User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 370,612 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,064 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser:
Views: 24002 | Replies: 5
Reply
Join Date: Jun 2004
Posts: 1
Reputation: JB1 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
JB1 JB1 is offline Offline
Newbie Poster

Help VB6 and MS Access 2002

  #1  
Jun 3rd, 2004
Dear all,

I have a question around the issue of using VB6 to access MS Access databases. Can VB6 be used to open access 2002, retrieve data from and input data into a table?

The following code keeps on giving me the message of "Unrecognised database format" error code 3343.

Dim DBSource As Database
Set DBSource = OpenDatabase("h:\training\names.mdb")

Is the problem with this code, or is it because VB6 can't open an access 2002 database?

Thanks in advance for your help.
JB1
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2004
Posts: 125
Reputation: Vinoth is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 1
Vinoth Vinoth is offline Offline
Junior Poster

Re: VB6 and MS Access 2002

  #2  
Jun 9th, 2004
problem with code, VB 6 could be opened using Access as well as oracle.
Reply With Quote  
Join Date: Jul 2004
Location: Adelaide, Australia
Posts: 191
Reputation: mnemtsas is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 1
mnemtsas's Avatar
mnemtsas mnemtsas is offline Offline
Junior Poster

Re: VB6 and MS Access 2002

  #3  
Jul 13th, 2004
Originally Posted by JB1
Dear all,

I have a question around the issue of using VB6 to access MS Access databases. Can VB6 be used to open access 2002, retrieve data from and input data into a table?

The following code keeps on giving me the message of "Unrecognised database format" error code 3343.

Dim DBSource As Database
Set DBSource = OpenDatabase("h:\training\names.mdb")

Is the problem with this code, or is it because VB6 can't open an access 2002 database?

Thanks in advance for your help.
JB1

Try taking a look at my ADO Tutorial. It explains how to interact with Access DB's of any persuasion from VB.
Reply With Quote  
Join Date: Jul 2004
Posts: 4
Reputation: siraj is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
siraj siraj is offline Offline
Newbie Poster

Solution Re: VB6 and MS Access 2002

  #4  
Jul 21st, 2004
Dear,
your solution is quite simple as i have had been through the same problem untill i came to know that Vb6.0 doesnot support MS Access 2002 and its databases.so all that you need to do is convert your MS access files into the previous version and this how you do is just open MS Access file then click on Tools->Database Utilities->Convert Database->To Access 97 Format.
try this it should work for you.


Originally Posted by JB1
Dear all,

I have a question around the issue of using VB6 to access MS Access databases. Can VB6 be used to open access 2002, retrieve data from and input data into a table?

The following code keeps on giving me the message of "Unrecognised database format" error code 3343.

Dim DBSource As Database
Set DBSource = OpenDatabase("h:\training\names.mdb")

Is the problem with this code, or is it because VB6 can't open an access 2002 database?

Thanks in advance for your help.
JB1
Reply With Quote  
Join Date: Jul 2004
Location: Adelaide, Australia
Posts: 191
Reputation: mnemtsas is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 1
mnemtsas's Avatar
mnemtsas mnemtsas is offline Offline
Junior Poster

Re: VB6 and MS Access 2002

  #5  
Jan 5th, 2005
????? ADO supports MS Access 2002 please engage brain before posting please
Reply With Quote  
Join Date: Feb 2005
Location: London, UK
Posts: 231
Reputation: uniquestar is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 11
Sponsor
uniquestar's Avatar
uniquestar uniquestar is offline Offline
Daniweb Sponsor

Re: VB6 and MS Access 2002

  #6  
Feb 25th, 2005
Hey, You can use access 2k
add the Microsoft ADO Data Control to your form, right click and then click properties.
you then want the last one and then build. make sure your database connects, then close that box
in the ADODC properties you should have a "Record Source Tab"
change that so you have the right table then in the "DataSource" property of your txt/label change that to adodc1, then change your datafield to the one you want to use.
try that
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Visual Basic 4 / 5 / 6 Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum

All times are GMT -4. The time now is 6:43 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC