Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help me how to use a database(access) in vb ..urgent

Status
Not open for further replies.

CyBrGhost

Technical User
Oct 3, 2001
3
0
0
PH
pls help me ho to us database(acess) n VB i forgot how...
pls urgent were having our thesis .....
Ghost....
 
Add a the reference Microsoft Active X data Objects 2.5 library to the project.

dim m_Connection As New ADODB.Connection
dim rsRecordset as new adodb.recordset

m_Connection.ConnectionString = _
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\myAccessMDB.mdb;Persist Security Info=False"
m_Connection.Open
rsRecordset.Open "SQL query or table name",m_connection,cursortype,locktype,options

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top