CONNECTION VB WITH ACCESS

Tags:
Microsoft Access 2003
Visual Basic
Visual Basic 6
Visual Studio 2005
how to connect visual basic 6 and msaccess 2003 by using connection string

Software/Hardware used:
VISUAL STUDIO 2005 WITH MSACCESS 2003

Answer Wiki

Thanks. We'll let you know when a new response is added.

Use the Microsoft.Jet.OLEDB.4.0 provider with the datasource in the connection string to connect the access 2003 with VB6.

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Uchihaerrold
    Can someone give me the code of log in system with database acess?
    10 pointsBadges:
    report
  • carlosdl
    Uchihaerrold, you should create a new question, and provide more details about your requirement.
    70,220 pointsBadges:
    report
  • Brijesh
    Hi,

    Try this :

    1)In the General Declaration Area 

    Dim cn As New ADODB.Connection 
    Dim rs As New ADODB.Recordset 

    2) in Form's Activate Event 
    cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=EMP.mdb;Persist Security Info=False" 
    cn.Open 
    rs.Open "select Eid,Ename,ppfSub,Basic From EmpData Order By Eid", cn, adOpenStatic, adLockPessimistic 
    Text1.text=rs.Fields(0) 

    Hope this helps.
    10,185 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following