Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unrecognised Database Format
Message
De
10/07/2000 02:34:15
 
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Divers
Thread ID:
00388210
Message ID:
00390098
Vues:
10
Hi Eric,

Could u please check for me this preview coding. I can update the record but I can't preview the record. Before I use the same coding for Access 97 0LEDB.3.51.

Dim BookRec As New ADODB.Recordset
Dim BookCon As New ADODB.Connection

Private Sub Form_Load()
BookCon.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Book\Book.mdb;Persist Security Info=False"
BookRec.ActiveConnection = BookCon.ConnectionString
BookRec.Open "Select * from Book", , adOpenStatic, adLockReadOnly
Set DataGrid1.DataSource = BookRec
End Sub

Thank you.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform