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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Database

Status
Not open for further replies.
Nov 14, 2001
81
0
0
US
I'm very new to visual basic. Does anyone know what to use to make a database. something very simple. enter names, search, and query.
 
Hi,

Search on 'ADO' on and you'll find lots of examples.
Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
 
First of all you have to add " Microsoft ActiveX Data Objects 2.1 " Library from your VB references.

They Try with the following simple code :-

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

If rs.State = adStateOpen Then rs.Close
rs.Open &quot;< SQL Query > &quot;, con, adOpenDynamic
'con is the connection String

Do While Not rs.EOF
< Code here for getting data from Record Set >
Loop
rs.close
con.close
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top