Declaraciones en access xp
Como se declara en access xp las bases de datos ya que he probado con este código y no me funciona:
Debe abrir una tabla y contar los registros
Private Sub Form_Open(Cancel As Integer)
Dim g As Database
Dim Lib As Recordset
Dim Consulta As String
Dim NL As Integer
Consulta = "Select * From empleados"
Set g = CurrentDb
Set Lib = g.OpenRecordset(Consulta)
Lib.MoveLast
Me.c1 = Lib.RecordCount
End Sub
Debe abrir una tabla y contar los registros
Private Sub Form_Open(Cancel As Integer)
Dim g As Database
Dim Lib As Recordset
Dim Consulta As String
Dim NL As Integer
Consulta = "Select * From empleados"
Set g = CurrentDb
Set Lib = g.OpenRecordset(Consulta)
Lib.MoveLast
Me.c1 = Lib.RecordCount
End Sub
1 respuesta
Respuesta de shark3000
1