Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Database and Reporting > Grade 11 Computer Science


Reply
 
Thread Tools Display Modes
  #1  
Old 09-22-2003, 12:27 PM
spiro spiro is offline
Regular
 
Join Date: Jan 2003
Posts: 68
Default Grade 11 Computer Science

Right now i'm in class where we are trying to solve a problem. We cannot link visual basic to microsoft access? We are following the microsft visual basic 6.0 step by step book, yet an error reedadly comes up "Unrecognized Database Format". This is when we try and set the RecordSource through data1. Any suggests or anyone know the problem?
Reply With Quote
  #2  
Old 09-22-2003, 12:31 PM
zak2zak's Avatar
zak2zak zak2zak is offline
Contributor
 
Join Date: Jul 2003
Location: Singapore
Posts: 686
Lightbulb May i comment

May be this helps..
R U Using Access 2000 db or above?
If so U Should try to install Service Pack 5?
__________________
I May Have Interpret It wrongly
Correct me..if I misunderstood U.
Hope This helps........and Enjoy Coding........//


zak2zak
Reply With Quote
  #3  
Old 09-22-2003, 12:40 PM
spiro spiro is offline
Regular
 
Join Date: Jan 2003
Posts: 68
Default

We are using access 2000
Reply With Quote
  #4  
Old 09-22-2003, 12:43 PM
reboot's Avatar
reboot reboot is offline
Keeper of foo

Retired Moderator
* Guru *
 
Join Date: Nov 2001
Location: Graceland
Posts: 15,612
Default

Then you need to download and install VB6 Service Pack 5.
Reply With Quote
  #5  
Old 09-22-2003, 12:48 PM
NoahBody NoahBody is offline
Senior Contributor
 
Join Date: Apr 2000
Location: Edge City, CA
Posts: 799
Default

Ok,
By "Data1" are you saying your using a datacontrol??

Making sure you have the latest versions is a good idea, but, I don't think that is the problem here.

Please excuse me, but, there isn't much information to go on by your post.

The recordsource is done AFTER the connection is made to the database.

Maybe you could zip up your project with the database and let us take a look at it.

->Noah
Reply With Quote
  #6  
Old 09-22-2003, 12:49 PM
reboot's Avatar
reboot reboot is offline
Keeper of foo

Retired Moderator
* Guru *
 
Join Date: Nov 2001
Location: Graceland
Posts: 15,612
Default

The data control that comes with VB6 pre-SP5 is incompatible with Access 2k. *shrug*
Reply With Quote
  #7  
Old 09-22-2003, 12:49 PM
nsmoller nsmoller is offline
Junior Contributor
 
Join Date: Aug 2003
Posts: 286
Default

ah thats what the problem was... i was getting the same crap the other day, i just recreated the db with visdata designer
Reply With Quote
  #8  
Old 09-22-2003, 12:57 PM
NoahBody NoahBody is offline
Senior Contributor
 
Join Date: Apr 2000
Location: Edge City, CA
Posts: 799
Default

Ok, now I'm really confused.

Which control?? There are at least 3, right?? RDO, DAO, ADO. So, the only way that SP5 installation (which I recommend) could be the answer is if all three were incompatible. Which I could buy, because it is Micro$oft, after all.

->Noah
Reply With Quote
  #9  
Old 09-22-2003, 04:55 PM
Phluxed Phluxed is offline
Centurion
 
Join Date: Sep 2003
Posts: 124
Default

Alex Spiro come on down. It's cam. I think you got it fixed in class didn't you?
__________________
In THEORY communism works... In THEORY Mountain Dew tastes good...
Reply With Quote
  #10  
Old 09-22-2003, 06:27 PM
spiro spiro is offline
Regular
 
Join Date: Jan 2003
Posts: 68
Default

sorry cameron...we did not solve it. and in response to everyone else...i tried installing SP5 at home...no difference... as to everything concerning ADO,DAO and whatnot, i could not tell you. It is not organized and what we are supposed to do is add del and mod entries in a databse..through VB, so far we have only discussed the datacontrol. Wether or not that is enough someone please let me know.
Reply With Quote
  #11  
Old 09-22-2003, 07:39 PM
VBJoe's Avatar
VBJoe VBJoe is offline
Village VB Idiot

* Expert *
 
Join Date: Jan 2003
Location: Idaho
Posts: 1,850
Default

I get that same error when trying to use the DAO data control with Access 2002/2000. Try using an ADO control instead of the default DAO data control. Either that, or recreate your database in Access 97. DAO is pretty much dead...

To use the ADO control click Project->Components and select the Microsoft ADO Data Control. That will also automatically add the reference to Microsoft ActiveX Data Objects 2.x.
Reply With Quote
  #12  
Old 09-23-2003, 02:27 AM
zak2zak's Avatar
zak2zak zak2zak is offline
Contributor
 
Join Date: Jul 2003
Location: Singapore
Posts: 686
Default May I Comment

May be this helps...
If U Have Installed VB6 Service Pack 5
U Should Have At Least Microsoft DAO 3.6 Object Library
Referrence in The Referrence property when U insert the
Data Control. Try Check If it is if it is still Refer to
Microsoft DAO 3.5 Then U have not installed VB6 Service Pack 5
Properly.
If U have confirmed to have the Service Pack Installed Then
U'r property window for Data Control will have the following
As In the picture. Choose Access 2000 in conjunction with u'r
Database?
Attached Images
File Type: jpg DAOProperty.jpg (21.5 KB, 7 views)
__________________
I May Have Interpret It wrongly
Correct me..if I misunderstood U.
Hope This helps........and Enjoy Coding........//


zak2zak
Reply With Quote
  #13  
Old 09-23-2003, 07:15 PM
spiro spiro is offline
Regular
 
Join Date: Jan 2003
Posts: 68
Default

thank you very much zak we have now solved the problem.
Reply With Quote
Reply


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Computer Science Course Problem mlw1235 Tech Discussions 3 09-10-2003 06:54 PM
Why am I experiencing problems with this code? Some Guy General 20 06-11-2003 05:15 AM
Simple 1-function Application error Kmax Miscellaneous Languages 1 05-30-2003 06:05 AM
Courses with Computer Science ICeMaN_179 Tech Discussions 8 01-12-2003 04:25 AM
Computer Science John Tech Discussions 22 03-27-2002 02:12 PM

Advertisement:

Powered by liquidweb