Here is the marco: (very simple if statments-just enough to do what was
originally needed)
Private Sub Detalle_Format(Cancel As Integer, FormatCount As Integer)
If DupeHeader = Me![ID] Then
Me![ID].Visible = False
Else
Me![ID].Visible = True
End If
If DupeHeader = Me![ID] Then
Me![Titúlo].Visible = False
Else
Me![Titúlo].Visible = True
End If
If DupeHeader = Me![ID] Then
Me![Apellido].Visible = False
Else
Me![Apellido].Visible = True
End If
If DupeHeader = Me![ID] Then
Me![Segundo Apellido].Visible = False
Else
Me![Segundo Apellido].Visible = True
End If
If DupeHeader = Me![ID] Then
Me![Nombre].Visible = False
Else
Me![Nombre].Visible = True
End If
If DupeHeader = Me![ID] Then
Me![Titúlo].Visible = False
Else
Me![Titúlo].Visible = True
End If
If DupeHeader = Me![ID] Then
Me![Dirección].Visible = False
Else
Me![Dirección].Visible = True
End If
If DupeHeader = Me![ID] Then
Me![Dirección 2].Visible = False
Else
Me![Dirección 2].Visible = True
End If
If DupeHeader = Me![ID] Then
Me![Ciudad].Visible = False
Else
Me![Ciudad].Visible = True
End If
If DupeHeader = Me![ID] Then
Me![Provincia].Visible = False
Else
Me![Provincia].Visible = True
End If
If DupeHeader = Me![ID] Then
Me![CompañÃa].Visible = False
Else
Me![CompañÃa].Visible = True
End If
If DupeHeader = Me![ID] Then
Me![Codigo Postal].Visible = False
Else
Me![Codigo Postal].Visible = True
End If
If DupeHeader = Me![ID] Then
Me![Mailing].Visible = False
Else
Me![Mailing].Visible = True
End If
DupeHeader = Me![ID]
End Sub
Unfortunately an error arrises when I try to view the SQL, so I can not
attach that to this email at this time. I will keep trying to get it.
jessica
Steve Schapel said:
Jessica,
Can you please go to the design view of the query that the report is
based on, select SQL from the View menu, and copy/paste the SQL of the
query back into your post here? Thanks.
Also, can you please give full details of the specific actions of the
macro that you have used to "make the duplicates invisible on the list"?
Thanks.