Ver Mensaje Individual
  #7 (permalink)  
Antiguo 28/10/2009, 02:58
quimfv
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Sabadell
Mensajes: 4.897
Antigüedad: 16 años, 2 meses
Puntos: 574
Respuesta: Problemilla en consulta de access 2003 !!!

Código vb:
Ver original
  1. Dim haydatos As Boolean
  2. Private Sub Detalle_Format(Cancel As Integer, FormatCount As Integer)
  3. DoCmd.SetWarnings False
  4. If haydatos Then
  5. If Me.LIMITE_CREDITO >0 Then
  6.     Me.LIMITE_CREDITO.ForeColor = 255
  7. Else
  8.     Me.LIMITE_CREDITO.ForeColor = 16711680
  9. End If
  10. End If
  11. DoCmd.SetWarnings True
  12. End Sub
  13.  
  14. Private Sub Report_NoData(Cancel As Integer)
  15.     MsgBox "No hay registros"
  16.     haydatos = False
  17. End Sub
  18.  
  19. Private Sub Report_Open(Cancel As Integer)
  20.     haydatos = True
  21. End Sub

esto no da errores no se si habrá una cosa mejor...

Quim