Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


How To Connect It??


How To Connect It??

Author
Message
nengyen
nengyen
Supreme Being
Supreme Being (269 reputation)Supreme Being (269 reputation)Supreme Being (269 reputation)Supreme Being (269 reputation)Supreme Being (269 reputation)Supreme Being (269 reputation)Supreme Being (269 reputation)Supreme Being (269 reputation)Supreme Being (269 reputation)

Group: Forum Members
Posts: 1, Visits: 2
Plss! help me!!



How to Connect VB 6.0 to microsoft access database??
Keithuk
Keithuk
Forum God
Forum God (304K reputation)

Group: Moderators
Posts: 1.9K, Visits: 5.5K
Welcome to A1vbcode nengyen.

nengyen (11/29/2008)
Plss! help me!!

How to Connect VB 6.0 to microsoft access database??

Databases use different formats to access them. ADO, Adodc, OLE DB, ODBC, RDS, DAO, Jet, JRO, and the old Data control. ADO, DAO, Adodc and the Data control are the common ones used.

For connecting have a read here. Wink

Keith

I've been programming with VB for 17 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

dineshmaths
dineshmaths
Supreme Being
Supreme Being (265 reputation)Supreme Being (265 reputation)Supreme Being (265 reputation)Supreme Being (265 reputation)Supreme Being (265 reputation)Supreme Being (265 reputation)Supreme Being (265 reputation)Supreme Being (265 reputation)Supreme Being (265 reputation)

Group: Forum Members
Posts: 1, Visits: 1
hai

dim conn as new adodb connection

dim rec as new adodb connection

both are declare in global variable

dim str as string

str="provider=Microsoft.jet.OLEDB.4.0;data source=";

conn.connnectionstring=str;

conn.open

rec.open(,conn);

example:

rec.open("select * from table1",conn)

BuzzL30
BuzzL30
Forum God
Forum God (8.6K reputation)Forum God (8.6K reputation)Forum God (8.6K reputation)Forum God (8.6K reputation)Forum God (8.6K reputation)Forum God (8.6K reputation)Forum God (8.6K reputation)Forum God (8.6K reputation)Forum God (8.6K reputation)

Group: Forum Members
Posts: 31, Visits: 129
This is a good question but I looked through here and realy did not see anything that taught me how to do this I am working on issue right now.

Keith I have seen some of all the comands or code functions you mentioned  and I sampled I think at least one of them but had no luck in learning anything new here.

Is there away and I dont mean to change the subject here by dropping off the using access program here and instead using other forms link in the background when this vb program runs? this seams like it would be so much easierErmm 

 Hey looking for a puppy check out what we have www.kaycopets.com" target=_"blank" class="SmlLinks">www.kaycopets.com

Keithuk
Keithuk
Forum God
Forum God (304K reputation)

Group: Moderators
Posts: 1.9K, Visits: 5.5K
BuzzL30 (2/19/2009)
Keith I have seen some of all the comands or code functions you mentioned  and I sampled I think at least one of them but had no luck in learning anything new here.

Well you have to decide how you are accessing the database. With ADO, Adodc, OLE DB, ODBC, RDS, DAO, Jet, JRO, and the old Data control. ADO, DAO, Adodc and the Data control are the common ones used. Then you can access the correct page on the link I've provided. Wink

Keith

I've been programming with VB for 17 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

BuzzL30
BuzzL30
Forum God
Forum God (8.6K reputation)Forum God (8.6K reputation)Forum God (8.6K reputation)Forum God (8.6K reputation)Forum God (8.6K reputation)Forum God (8.6K reputation)Forum God (8.6K reputation)Forum God (8.6K reputation)Forum God (8.6K reputation)

Group: Forum Members
Posts: 31, Visits: 129
sorry keith I have tried the instructions in the link you provided and I got an error saying it should be an end right after the .4 in that string can you give us some insight to this please

 Hey looking for a puppy check out what we have www.kaycopets.com" target=_"blank" class="SmlLinks">www.kaycopets.com
GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search