R
RipperT
I have the following code in the format section of a report that sets a
label's caption based on whether or not a record shows up in a query
(upon which the report is NOT based). It takes forever. Is there a
faster way to do this? (Access 2000)
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If DCount("InmateId", "qryMPRI_current", "InmateId = '" &
Me.InmateId & "'") <> 0 Then
Me.lblMPRI.Caption = "MPRI"
Else
Me.lblMPRI.Caption = ""
End If
End Sub
Many thanx,
Ripper
label's caption based on whether or not a record shows up in a query
(upon which the report is NOT based). It takes forever. Is there a
faster way to do this? (Access 2000)
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If DCount("InmateId", "qryMPRI_current", "InmateId = '" &
Me.InmateId & "'") <> 0 Then
Me.lblMPRI.Caption = "MPRI"
Else
Me.lblMPRI.Caption = ""
End If
End Sub
Many thanx,
Ripper