I've been getting ALOT of help from this site lately and it's been a real life-saver. I know that as soon as I learn enough I'll be giving back to the community. But for now, I have another issue.
I have a database and have set up a data entry form for "trouble tickets" at the helpdesk. It works like a charm.
I also created a "find duplicate records" query that will look for TWO specific fields within a record for duplication, but only if they are BOTH the same.
What I need to do is find a way of comparing the first two fields entered in the data entry page to the query and display if the record is a "potential" duplicate (I'll explain more on "potential" later).
I know that one way would be to use the two fields as a composite key instead of the more common "autonumber" field, but I really can't open that can of worms. Especially since both of the fields involved are in relationships with other tables in the database, and it feeds into the whole "potential" duplicate issue.
The fields involved are something like this...
Depts
Hardware
Software
Services
TicketNo (sequentially numbered ie. 001, 002, etc...)
Issue1
Issue2
Issue3
Here's the rub...
1. All three departments use the same set of ticket numbers and they are restricted to three digits (001-999) so I can't use the ticket number as my primary key (the way I wanted to).
2. All three departments REUSE the ticket numbers as needed. There are four "Software" tickets numbered 0001 in this database. This is where "potential" duplicates come in. Even if there are duplicate records for these two fields, it may be intended for the dept/ticketno combination to be created again.
3. I have no way of changing #1 or #2. I've been shot down so many times the rounds are starting to go through the holes left by previous battles.
Ok, I hope I've given enough info.
Thanks in advance for any help!!!
Scanner
I have a database and have set up a data entry form for "trouble tickets" at the helpdesk. It works like a charm.
I also created a "find duplicate records" query that will look for TWO specific fields within a record for duplication, but only if they are BOTH the same.
What I need to do is find a way of comparing the first two fields entered in the data entry page to the query and display if the record is a "potential" duplicate (I'll explain more on "potential" later).
I know that one way would be to use the two fields as a composite key instead of the more common "autonumber" field, but I really can't open that can of worms. Especially since both of the fields involved are in relationships with other tables in the database, and it feeds into the whole "potential" duplicate issue.
The fields involved are something like this...
Depts
Hardware
Software
Services
TicketNo (sequentially numbered ie. 001, 002, etc...)
Issue1
Issue2
Issue3
Here's the rub...
1. All three departments use the same set of ticket numbers and they are restricted to three digits (001-999) so I can't use the ticket number as my primary key (the way I wanted to).
2. All three departments REUSE the ticket numbers as needed. There are four "Software" tickets numbered 0001 in this database. This is where "potential" duplicates come in. Even if there are duplicate records for these two fields, it may be intended for the dept/ticketno combination to be created again.
3. I have no way of changing #1 or #2. I've been shot down so many times the rounds are starting to go through the holes left by previous battles.
Ok, I hope I've given enough info.
Thanks in advance for any help!!!
Scanner