943,480 Members | Top Members by Rank

Ad:
Jun 3rd, 2004
0

VB6 and MS Access 2002

Expand Post »
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
Similar Threads
JB1
Reputation Points: 10
Solved Threads: 0
Newbie Poster
JB1 is offline Offline
1 posts
since Jun 2004
Jun 9th, 2004
1

Re: VB6 and MS Access 2002

problem with code, VB 6 could be opened using Access as well as oracle.
Reputation Points: 13
Solved Threads: 2
Junior Poster
Vinoth is offline Offline
125 posts
since Jun 2004
Jul 13th, 2004
0

Re: VB6 and MS Access 2002

Quote 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.
Reputation Points: 16
Solved Threads: 1
Posting Whiz in Training
mnemtsas is offline Offline
200 posts
since Jul 2004
Jul 21st, 2004
0

Re: VB6 and MS Access 2002

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.


Quote 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
Reputation Points: 13
Solved Threads: 0
Newbie Poster
siraj is offline Offline
4 posts
since Jul 2004
Jan 5th, 2005
0

Re: VB6 and MS Access 2002

????? ADO supports MS Access 2002 please engage brain before posting please
Reputation Points: 16
Solved Threads: 1
Posting Whiz in Training
mnemtsas is offline Offline
200 posts
since Jul 2004
Feb 25th, 2005
0

Re: VB6 and MS Access 2002

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
Reputation Points: 49
Solved Threads: 11
Posting Whiz in Training
uniquestar is offline Offline
239 posts
since Feb 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Addnew problem
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Command Button Validation





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC