M
my-wings
I don't know if this is do-able nor not, but I have a situation where if I
have duplicates, I want to eliminate BOTH records from the query results.
I'll post the details in case someone can think up a solution in a totally
different direction from the one I'm heading in.
The situation is that I have a set of records that represent insurance
policies. These are generally 12 month policies, but they are occasionally
longer or shorter. Each policy has to be renewed on its expiration date. I
have a form where I can set month and year, and a few other details like
salesperson or underwriter, and I query the database to bring me the
policies that meet my other criteria and that expire for the given
month/year.
The problem is, if the policy has already been renewed, I don't want it
listed. Right now, I'm just listing policies in order by customer name, for
the current year and one year in the future. Then the underwriters are
visually scanning the list and clicking a button to renew the files that
don't already show a policy for next year. I'm wondering if there is any way
I could eliminate both current year and future year policies in a query and
only pick up those files that haven't been renewed. So far, the only thing I
can think of (besides some feature of "distinct" that I don't know about) is
to add a checkbox or something to the original record and check it when the
record is copied to make the renewal.
But I'm going to lose the tracking if someone creates a renewal and then
deletes it.
Any thoughts?
Alice
have duplicates, I want to eliminate BOTH records from the query results.
I'll post the details in case someone can think up a solution in a totally
different direction from the one I'm heading in.
The situation is that I have a set of records that represent insurance
policies. These are generally 12 month policies, but they are occasionally
longer or shorter. Each policy has to be renewed on its expiration date. I
have a form where I can set month and year, and a few other details like
salesperson or underwriter, and I query the database to bring me the
policies that meet my other criteria and that expire for the given
month/year.
The problem is, if the policy has already been renewed, I don't want it
listed. Right now, I'm just listing policies in order by customer name, for
the current year and one year in the future. Then the underwriters are
visually scanning the list and clicking a button to renew the files that
don't already show a policy for next year. I'm wondering if there is any way
I could eliminate both current year and future year policies in a query and
only pick up those files that haven't been renewed. So far, the only thing I
can think of (besides some feature of "distinct" that I don't know about) is
to add a checkbox or something to the original record and check it when the
record is copied to make the renewal.
But I'm going to lose the tracking if someone creates a renewal and then
deletes it.
Any thoughts?
Alice