How can i access data from MS Access using VB6 (I need the connection code) can u plz tell me the code for accessing tables in MS Access using Visual Basic 6. my access tables are in a server not in my local computer..... plz let me know the code
guru511 0 Light Poster
Recommended Answers
Jump to PostHi,
Get Connection String here:
http://www.connectionstrings.com/?carrier=access
Change the Path to Server Path.
Regards
Veena
Jump to PostHi,,
Add "Microsoft ActiveX objects 2.0" References to the project. Share the Folder in Server With Full Access.
use this code:
Dim rs As New ADODB.Recordset
Dim AC As New ADODB.Connection
With AC
.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\ServerName\ShareFolder\db1.mdb;Persist Security Info=False"
.Open
End With
ssql = "Select * from …
All 6 Replies
QVeen72 104 Posting Shark
choudhuryshouvi 33 Posting Pro
guru511 0 Light Poster
guru511 0 Light Poster
QVeen72 104 Posting Shark
guru511 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.