Private Sub tipo_AfterUpdate()
Dim r As DAO.Recordset
Dim db As DAO.Database
Dim SQL As String
Set db = CurrentDb
SQL = "select * from servicios where codservicio=" & tipo
Set r = db.OpenRecordset(SQL)
descripcion = r(1)
precio = r(2)
End Sub
No hay comentarios:
Publicar un comentario