VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Connection Database Through ADO...

by Siva (1 Submission)
Category: Databases/Data Access/DAO/ADO
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 21st September 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Connection Database Through ADO...

API Declarations


'Created Date : 21/09/2000

'Go to Project Menu and click Reference and add ActiveX Data Objects..

Dim adoConn As New ADODB.Connection
Dim adoComm As New ADODB.Command
Dim adoRes As New ADODB.Recordset


Rate Connection Database Through ADO...




adoConn.Open "......." 'Insert Dsn
Set adoComm = adoConn

adoComm.CommandText = "Select * from ......."
adoRes.CursorLocation = adUseClient
adoRes.Open adoComm, , adOpenStatic, adLockBatchOptimistic

'To update New Records..
adoRes.Addnew
  .
  .
  .
adores.UpdateBatch

End Sub

Download this snippet    Add to My Saved Code

Connection Database Through ADO... Comments

No comments have been posted about Connection Database Through ADO.... Why not be the first to post a comment about Connection Database Through ADO....

Post your comment

Subject:
Message:
0/1000 characters