Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Practica#7 Rocio
Practica#7 Rocio
CHIHUAHUA
CARRERA:
MODULO:
GRUPO:
6101-I
Práctica No. 7
MATRICULA:
070260009-9
FECHA DE REALIZACIÓN:
Abril-2011
4. Desarrollo de Software
Entradas y Salidas
Pantallas
Reportes
Interfaces
Datos
Exit_Salir_Click:
Exit Sub
Err_Salir_Click:
MsgBox Err.Description
Resume Exit_Salir_Click
End Sub
stDocName = "AbrirFormularioPrés&Devol"
DoCmd.RunMacro stDocName
Exit_Comando2_Click:
Exit Sub
Err_Comando2_Click:
MsgBox Err.Description
Resume Exit_Comando2_Click
End Sub
DoCmd.GoToRecord , , acPrevious
Exit_Comando6_Click:
Exit Sub
Err_Comando6_Click:
MsgBox Err.Description
Resume Exit_Comando6_Click
End Sub
DoCmd.GoToRecord , , acNext
Exit_Comando7_Click:
Exit Sub
Err_Comando7_Click:
MsgBox Err.Description
Resume Exit_Comando7_Click
End Sub
Botón Nuevo Registro
DoCmd.GoToRecord , , acNewRec
Exit_Comando8_Click:
Exit Sub
Err_Comando8_Click:
MsgBox Err.Description
Resume Exit_Comando8_Click
End Sub
Botón Cerrar
Exit_Comando5_Click:
Exit Sub
Err_Comando5_Click:
MsgBox Err.Description
Resume Exit_Comando5_Click
End Sub
CÓDIGO DEL BOTÓN CAPTURA DE LIBROS
Exit_AbrirCapturaLibros_Click:
Exit Sub
Err_AbrirCapturaLibros_Click:
MsgBox Err.Description
Resume Exit_AbrirCapturaLibros_Click
End Sub
Botón Registro Anterior
DoCmd.GoToRecord , , acPrevious
Exit_Comando2_Click:
Exit Sub
Err_Comando2_Click:
MsgBox Err.Description
Resume Exit_Comando2_Click
End Sub
DoCmd.GoToRecord , , acNext
Exit_Comando3_Click:
Exit Sub
Err_Comando3_Click:
MsgBox Err.Description
Resume Exit_Comando3_Click
End Sub
Botón Cerrar
Exit_Comando5_Click:
Exit Sub
Err_Comando5_Click:
MsgBox Err.Description
Resume Exit_Comando5_Click
End Sub
DoCmd.GoToRecord , , acNewRec
Exit_Comando4_Click:
Exit Sub
Err_Comando4_Click:
MsgBox Err.Description
Resume Exit_Comando4_Click
End Sub
CÓDIGO DEL BOTÓN CAPTURA DE PRÉSTAMOS
Exit_Comando13_Click:
Exit Sub
Err_Comando13_Click:
MsgBox Err.Description
Resume Exit_Comando13_Click
End Sub
Aquí escribes el número de
usuario a quien se le va a hacer
el préstamo, se da un “tab” y
aparece información del usuario
En este formulario también se muestra la fecha de préstamo y la fecha en que se tiene que entregar
el o los libros que se prestaron, aparte también muestra la cantidad de libros prestados.
Botón Cerrar
Exit_Comando2_Click:
Exit Sub
Err_Comando2_Click:
MsgBox Err.Description
Resume Exit_Comando2_Click
End Sub
DoCmd.GoToRecord , , acNewRec
Exit_NuevoRegistro_Click:
Exit Sub
Err_NuevoRegistro_Click:
MsgBox Err.Description
Resume Exit_NuevoRegistro_Click
End Sub
Exit_Comando15_Click:
Exit Sub
Err_Comando15_Click:
MsgBox Err.Description
Resume Exit_Comando15_Click
End Sub
Botón Cerrar
Exit_Comando22_Click:
Exit Sub
Err_Comando22_Click:
MsgBox Err.Description
Resume Exit_Comando22_Click
End Sub
BOTÓN DEVOLVER
If (fechaEntrega + 1) Then
multaNva = 10
ElseIf (fechaEntrega + 2) Then
multaNva = 20
ElseIf (fechaEntrega + 3) Then
multaNva = 30
ElseIf (fechaEntrega + 4) Then
multaNva = 40
ElseIf (fechaEntrega + 5) Then
multaNva = 50
Else
multaNva = 100
End If
Me.Multa = multaNva
DoCmd.SetWarnings False
DoCmd.RunSQL "Update[Libros]" & " Set[Libros].[Cantidad]=Cantidad+1 " & "Where[Libros].
[Clave]=TempClave;"
DoCmd.RunSQL "Update[Libros]" & " Set[Libros].[Estado]='DISPONIBLE' " & "Where[Libros].
[Clave]=TempClave;"
DoCmd.RunSQL "Delete * From[Detalles]" & "Where[Detalles].[DClave_libro]=TempClave;"
DoCmd.RunSQL "Delete * From[Préstamos] Where[No_préstamo]=TempNoPrestamo;"
multaNva = 0
Form.Refresh
End Sub
Plataforma Tecnológica
Sistema Operativo
Microsoft Windows XP
Base de Datos
Microsoft Access 2010
Equipo de Procesamiento
Pentium (R) 4 CPU 1.60GHz
1.60GHZ, 640 MB de RAM