Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 09-11-2002, 11:45 AM   #1
Member (7 bit)
 
Join Date: Feb 2002
Posts: 67
Really Newbie question (Visual Basic)

I have just installed Visual Basic 6 on my pc and also bought a new book so I can learn how to use it. I have spent all this money because i want to make a program that lets you search, read from and write to a database made in access. It appears that it should be a piece of cake, as it's only chapter 3 in the book, but I get absolutely nowhere before I get an error come up.

I have searched the forum for this, so it's obviously too easy for anyone to bother covering:



I make a generic database in access, put a table with a couple of records in and save it.

I open VB6, make a new program and put in a data thing off the toolbar on the left. I choose the right database in properties.

Then, when I go to the record source property and click on the drop down list, it gives the error "unrecognised database format" followed by the filename.

I have checked that the connect property is set to "access" and the defaulttype set to "usejet"




i think thats enough information. If you need more then just ask but I'm pretty sure its going to be dead simple.

I'm off to read the book again.

Thanks in advance,

Keys
skeletonkeys is offline   Reply With Quote
Old 09-11-2002, 04:58 PM   #2
Member (11 bit)
 
Doobie's Avatar
 
Join Date: Jul 2002
Location: Mexico
Posts: 1,049
Send a message via AIM to Doobie Send a message via Yahoo to Doobie
you could go to PlanetSourceCode.com and search for database.... and download a sample to see how it is done....

Hope that helps you.....
__________________
Computer: 486
Ram: 8 MB
CD Rom: None
OS: Windows 3.1
Doobie is offline   Reply With Quote
Old 09-11-2002, 05:04 PM   #3
Member (11 bit)
 
Doobie's Avatar
 
Join Date: Jul 2002
Location: Mexico
Posts: 1,049
Send a message via AIM to Doobie Send a message via Yahoo to Doobie
Oh, yeah i have a sample database program that i made to keep track of people that owe me money ... if you would like i can send it to you.... But its in Spanglish (spanish/english) ..... very easy to understand.... let me know...

Last edited by Doobie; 09-11-2002 at 05:08 PM.
Doobie is offline   Reply With Quote
Old 09-11-2002, 05:08 PM   #4
Resident Slacker
 
homer15's Avatar
 
Join Date: Dec 2001
Location: Suisun City, California (i know, where the hell is that?!?!?)
Posts: 2,620
do you think you could list the properties for the control bar?
__________________
Friends help you move. REAL friends help you move bodies. - me
quite possibly the best book ever written... by me
homer15 is offline   Reply With Quote
Old 09-12-2002, 08:02 AM   #5
Professional gadfly
 
doctorgonzo's Avatar
 
Join Date: Jan 2002
Location: Minneapolis, MN
Posts: 6,364
Send a message via MSN to doctorgonzo
Instead of using the regular data control on your VB toolbar, trying using an ADODC data source. Go to components (Ctrl+T), and then select M$ ADO Data Countrol. Hit apply to add it to the toolbar, and then add the control it to your form. Go to the ConnectionString property and build a connection string (a little wizard will help you there, click on "Use Connection String", click on "Build", for the Provider select M$ Jet 4.0 OLE DB provider, then on the Connection tab put in the database data, and then test the connection). Then you should be all set. This works for me when the regular data control gives me that "Unrecognized format" message. Besides, there are many other advantages to using an ADO data control.
doctorgonzo is offline   Reply With Quote
Old 09-12-2002, 10:53 AM   #6
Member (7 bit)
 
Join Date: Feb 2002
Posts: 67
Thanks, that ado thing has worked, but now I'm stuck as to what to do next, as the only tutorial I have does everything the old fashioned way. Can you recommend a tutorial/example program that helps with this?

Thanks again,

Keys
skeletonkeys is offline   Reply With Quote
Old 09-12-2002, 11:11 AM   #7
Member (7 bit)
 
Join Date: Feb 2002
Posts: 67
ie. helps with searching through, adding to etc. a database.

Sorry, should've explained that.

Keys
skeletonkeys is offline   Reply With Quote
Old 09-12-2002, 11:21 AM   #8
Professional gadfly
 
doctorgonzo's Avatar
 
Join Date: Jan 2002
Location: Minneapolis, MN
Posts: 6,364
Send a message via MSN to doctorgonzo
Just go to Google and type in "ADO Tutorial" and you will find a bunch of info.
doctorgonzo is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:23 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2