Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 VB link to Access DB, help

views
     
SUSAcey
post Jan 17 2006, 10:30 AM, updated 20y ago

หมัด เท้า เข่า ศอก
*******
Senior Member
3,622 posts

Joined: Jan 2003


I'm a noob when it comes to programming but i need to finish my double module final year project. What code can I use to link an MS Access database (named db1) to my VB 6.0 system? Its a standalone system...

And besides that, is there any how I can create a database with Access to store pictures of designs that will have properties in terms of price and size? I need this so the DSS (decision support system) part can do its search and load all designs within the criteria set.

Expert programmers, please help and thanks for any information.
calapia
post Jan 17 2006, 01:25 PM

On my way
****
Senior Member
692 posts

Joined: Dec 2005


QUOTE(Acey @ Jan 17 2006, 10:30 AM)
I'm a noob when it comes to programming but i need to finish my double module final year project.  What code can I use to link an MS Access database (named db1) to my VB 6.0 system?  Its a standalone system...

And besides that, is there any how I can create a database with Access to store pictures of designs that will have properties in terms of price and size?  I need this so the DSS (decision support system) part can do its search and load all designs within the criteria set.

Expert programmers, please help and thanks for any information.
*
Don't know what to say bout ur condition..but u need to brush up ur skill....

There are several way to connect vb6 to MSAccess...the simplest way is use data control which available at the tool bar. Just specify the path of ur database location and it can connect.

Else use ADODC and follow the wizard. If wan more powerful use SQL connection.

For storing pictures using database is advisable to store the picture path only. It can store the picture in the database but not very practical. So just store ur picture elsewhere and store the path to ur database. THen u use the path to retrieve the picture using ur program. Hope this can help a bit.


SincerePrayer
post Jan 17 2006, 01:56 PM

love to pray
Group Icon
Elite
1,120 posts

Joined: Jun 2005
Acey,


I won't say much, since the samples code can be found in Free VB Code.


Happy Coding smile.gif
shinchan^^
post Jan 17 2006, 01:57 PM

K66
*********
All Stars
21,256 posts

Joined: Jan 2003
From: Pekopon


wow how many times this question has been repeated
doh.gif
AaronZe
post Jan 17 2006, 03:03 PM

Getting Started
**
Junior Member
135 posts

Joined: Aug 2005


Haha, i've done a quite similar program for my assignment....about the pictures storing...i can't figure out how to store in MS Access database so i just store the path of the picture and load in during runtime....
SUSAcey
post Jan 17 2006, 04:33 PM

หมัด เท้า เข่า ศอก
*******
Senior Member
3,622 posts

Joined: Jan 2003


ooo thanks guys
SUSAcey
post Jan 19 2006, 12:53 PM

หมัด เท้า เข่า ศอก
*******
Senior Member
3,622 posts

Joined: Jan 2003


huiyoooooorrrrrr basket VB... i try to link the database but tell me my Access database got .mdb extension is not recognized... wtf is that????? KNNCCB FCK PROGRAMMING BASKET VB CCB I DO UNTIL WANNA THROW MY CHAIR SON OF A b**** VB

This post has been edited by Acey: Jan 19 2006, 12:53 PM
AaronZe
post Jan 19 2006, 02:05 PM

Getting Started
**
Junior Member
135 posts

Joined: Aug 2005


Do you have MS Office Access installed? If not it will not work...
shinchan^^
post Jan 19 2006, 02:12 PM

K66
*********
All Stars
21,256 posts

Joined: Jan 2003
From: Pekopon


tongue.gif angry never solved problem
SUSAcey
post Jan 19 2006, 03:08 PM

หมัด เท้า เข่า ศอก
*******
Senior Member
3,622 posts

Joined: Jan 2003


@Aaronze... yes, else why would I get so pissed?
lee82gx
post Jan 19 2006, 03:13 PM

I guess I'm special
*******
Senior Member
3,117 posts

Joined: Jul 2005
From: Penang


i also have this problem b4...
even foxpro or other db also not recognized...but i end up not using a database lol. If you still HAVE TO USE DB --->

I recommend you ask in www.vbforums.com
seriously a lot of pro's there. Most Q's answered in a day (if you provide all the necessary info).
linking your prog with database is answered in FAQ's
shinchan^^
post Jan 19 2006, 03:52 PM

K66
*********
All Stars
21,256 posts

Joined: Jan 2003
From: Pekopon


QUOTE(Acey @ Jan 19 2006, 12:53 PM)
huiyoooooorrrrrr basket VB... i try to link the database but tell me my Access database got .mdb extension is not recognized... wtf is that????? KNNCCB FCK PROGRAMMING BASKET VB CCB I DO UNTIL WANNA THROW MY CHAIR SON OF A b**** VB
*
Huh impossible not recognised


use the connection string
http://www.connectionstrings.com/
SUSAcey
post Jan 19 2006, 09:19 PM

หมัด เท้า เข่า ศอก
*******
Senior Member
3,622 posts

Joined: Jan 2003


adui... dono what to do d... cos my database covers 70% of my system's operation cos i got appointments, customer info, sales, payments, DSS based on designs... die lar die lar... went to library n borrow 2 thick ass books on VB.. if still cannot tmr burn 1 cd ask my class punya monsters to help
shinchan^^
post Jan 20 2006, 10:06 AM

K66
*********
All Stars
21,256 posts

Joined: Jan 2003
From: Pekopon


doh.gif doh.gif doh.gif
i thought super easy to connec to access
dunno what is ur problem
AaronZe
post Jan 20 2006, 01:24 PM

Getting Started
**
Junior Member
135 posts

Joined: Aug 2005


Mind posting a screenshot when the problem occurs? Sometimes it's because that the program can't find your database because u moved the program and database file to other directory or drive and the program can't find the database file...in this case must use the connection string code. smile.gif
SUSAcey
post Jan 20 2006, 07:42 PM

หมัด เท้า เข่า ศอก
*******
Senior Member
3,622 posts

Joined: Jan 2003


^ i'll post later... now very tired, just finished cutting acrylic... cant be the prob u mentioned cos i'm always concious about where each important file is and where I saved them.
yingchai
post Jan 21 2006, 02:08 AM

Regular
******
Senior Member
1,281 posts

Joined: Jul 2005

make sure u connect 2 the PROVIDER and DATA SOURCE correctly...
in ur case, i suggest u use the PROVIDER=Microsoft.Jet.OLEDB.4.0
ur DATA SOURCE should refer to the specified folder dat keep ur .mdb file
SUSAcey
post Jan 22 2006, 01:40 PM

หมัด เท้า เข่า ศอก
*******
Senior Member
3,622 posts

Joined: Jan 2003


^ will try it.. I suspect either sth wrong with the VB or Access so I redo the whole system on a new project.. will try to post what happens later with the database... thx
SUSAcey
post Feb 14 2006, 07:48 PM

หมัด เท้า เข่า ศอก
*******
Senior Member
3,622 posts

Joined: Jan 2003


user posted image

now... someone tell me wtf does this mean?
AaronZe
post Feb 14 2006, 08:32 PM

Getting Started
**
Junior Member
135 posts

Joined: Aug 2005


There is no such function as "Opendatabase" in VB, i think, correct me if am wrong, forgot some stuffs of VB already....

2 Pages  1 2 >Top
 

Change to:
| Lo-Fi Version
0.0178sec    1.11    5 queries    GZIP Disabled
Time is now: 23rd December 2025 - 09:27 AM