‘Modulo para conectar un programa en VB 6.0 a una base de datos en ACCESOption ExplicitPublic user As RecordsetPublic base...
Upcoming SlideShare
Loading in …5
×

Modulo para conectar un programa en vb 6

1,193 views

Published on

conecciòn a base de datos con VB 6.0

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,193
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
11
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Modulo para conectar un programa en vb 6

  1. 1. ‘Modulo para conectar un programa en VB 6.0 a una base de datos en ACCESOption ExplicitPublic user As RecordsetPublic base As DatabasePublic criteria As StringPublic Sub conectar() Set base = OpenDatabase(App.Path & "db1")End SubPublic Sub abrir() Set user = base.OpenRecordset("tabla1", dbOpenTable)End SubPublic Sub cerrar() Set base = Nothing Set user = NothingEnd SubPublic Sub buscar(valor As String) criteria = "select * from tabla1 where nombre = " & valor & "" Set user = base.OpenRecordset(criteria)End Sub

×