D
DebbieG
I have a report (labels) that contains the following:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Me.PrintCheck = -1 Then
Me.txtAddress1 = Me.Address1
Me.txtAddress2 = Me.Address2
Me.txtCityStateZip = Me.CityStateZip
ElseIf Me.ParentPrintCheck = -1 Then
Me.txtAddress1 = Me.ParentAddress1
Me.txtAddress2 = Me.ParentAddress2
Me.txtCityStateZip = Me.ParentCityStateZip
End If
End Sub
The user wants to sort this by zip code. Right now I'm sorting it by
ParentZip, then by StudentZip. If they check all of the Parents' addresses
or all of the Students' addresses then it sorts OK. But if there is a
mixture, it still sorts first by ParentZip, then by StudentZip. I can't
figure out how to sort by what is printed.
Anyone know what I can do to get what they want?
Thanks in advance,
Debbie
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Me.PrintCheck = -1 Then
Me.txtAddress1 = Me.Address1
Me.txtAddress2 = Me.Address2
Me.txtCityStateZip = Me.CityStateZip
ElseIf Me.ParentPrintCheck = -1 Then
Me.txtAddress1 = Me.ParentAddress1
Me.txtAddress2 = Me.ParentAddress2
Me.txtCityStateZip = Me.ParentCityStateZip
End If
End Sub
The user wants to sort this by zip code. Right now I'm sorting it by
ParentZip, then by StudentZip. If they check all of the Parents' addresses
or all of the Students' addresses then it sorts OK. But if there is a
mixture, it still sorts first by ParentZip, then by StudentZip. I can't
figure out how to sort by what is printed.
Anyone know what I can do to get what they want?
Thanks in advance,
Debbie