L
LightByrd
I have constructed a database for a victim services organization with some
2000 clients.
(sad commentary on today's world)
One of the required reports is all the activity of an individual client.
Obviously this suggests a one-to-many arrangement, as one client may be
associated with more than on incident.
But each callout record is unique, even though the client may be the same.
I set up a popup with a text control wherein a partspec of the client's last
name is entered. That information is then sent to a drop down box on the
same form with this SQL in the rowsource property:
SELECT Callout.IncidentID, callout.ClientLastName & ", " &
Callout.ClientFirstName AS [Full] FROM Callout WHERE
(((callout.ClientLastName) Like [txtClientLastName] & "*")) ORDER BY
Callout.ClientLastName & ", " & Callout.ClientFirstName;
This works fine--it sends all incidents related to this person to the
printed report.
Let's say Jane Doe has required our services 3 times.
The report prints all 3 occurrences.
But the drop down box has her name 3 times.
Any way to eliminate the duplicates in the DD box, but still print all 3
records?
Thanks
2000 clients.
(sad commentary on today's world)
One of the required reports is all the activity of an individual client.
Obviously this suggests a one-to-many arrangement, as one client may be
associated with more than on incident.
But each callout record is unique, even though the client may be the same.
I set up a popup with a text control wherein a partspec of the client's last
name is entered. That information is then sent to a drop down box on the
same form with this SQL in the rowsource property:
SELECT Callout.IncidentID, callout.ClientLastName & ", " &
Callout.ClientFirstName AS [Full] FROM Callout WHERE
(((callout.ClientLastName) Like [txtClientLastName] & "*")) ORDER BY
Callout.ClientLastName & ", " & Callout.ClientFirstName;
This works fine--it sends all incidents related to this person to the
printed report.
Let's say Jane Doe has required our services 3 times.
The report prints all 3 occurrences.
But the drop down box has her name 3 times.
Any way to eliminate the duplicates in the DD box, but still print all 3
records?
Thanks