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 Post'using connection object
'in general section
dim conn as adodb.connection
dim rs as adodb.recordset'in form load
set conn=new adodb.connection
set rs=new adodb.recordsetconn="provider=microsoft jet.4.0.oledb;data source=<ur database name>;persist security info=false"
conn.open
rs.open "select *from ur tablename",conn,adopendynamic,adlockoptimistic
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.