Loading

need help how to connect vb6 to the microsoft access

5 posts / 0 new
Last post
jem
Offline
Joined: 12/17/2009
need help how to connect vb6 to the microsoft access

please help me how to connect this vb6 to the microsoft access..hoping for your positive responds..

mrhumble's picture
Offline
Joined: 04/02/2010
how to connect vb6 to the microsoft access

you must need to add a reference named microsoft activeX data objects 2.7 library for the oledb connection

the code will look like this

you must declare conn as your connection

dim conn as adodb.connection
dim a as string

on your form load or on the sub main the code is

a="provider=microsoft.jet.oledb.4.0; data source=(the path of your database)
conn.connectionstring=a
conn.open

hope this will help
im also a newbie programmer
or visit me at http://codesrepublic.blogspot.com

http://codes-47.blogspot.com

jem
Offline
Joined: 12/17/2009
hello mrHumble

your help get usefull to me thank you so much...

Anonymous
Need Help

Hi ... My name is Hilal ... from Indonesia.
Please help to make the applications MLM (Multilevel Marketing) / Network Marketing.
Previously I say many thanks

Anonymous
hello Jem

your welcome jem

for more VB 6 codes just visit my blog http://codesrepublic.blogspot.com

thanks and God Bless!!!!

Pages

Add new comment

Filtered HTML

  • You may insert videos with [video:URL]
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <asp>, <c>, <cpp>, <csharp>, <css>, <html4strict>, <java>, <javascript>, <mysql>, <php>, <python>, <sql>, <vb>, <vbnet>. The supported tag styles are: <foo>, [foo].
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.