A
Aria
Hello,
I hate to post yet another question about duplicate entries but I could use
some help with this. I have read hundreds of posts regarding this subject and
have seen answers ranging from use a unique index, DLookup or Soundex. This
has only left me confused.
I'm trying to prevent duplicate entries for my school db and the testing
phase has not been successful. I'm not quite sure how to go about doing this
and was looking for some advice.
Problem:
1. We have multiple staff who share a last name though they are not related.
2. We have staff who share a last name, first name and *are* related.
3. We have staff who are husband and wife and share a last name as well as
an address.
Set-up:
We have site employees (teachers and support staff) as well as substitute
staff (teachers and support staff), community staff and district staff.
Adresses and emergency contact information is related 1:1 to the site
employee table. Therefore, I will not know the address of any other group
besides our own site staff.
Needs:
A way to alert the user that the name entered appears to be a duplicate. I
don't want to get too complicated here. Maybe something like setting the
focus to the combo box in the header and dropping the list to the first
instance of the staff member's name, just so a visual check can be made. I
don't know, maybe there's a better way. I'm open to suggestions. I tried to
create a unique index using information found in one of the many posts I read
but nothing happens when I test it, so I must be doing something wrong.
Actions taken:
1. I opened tblEmployees in design view.
2. Clicked the index button.
3. Went to the first blank row and named the new index I was trying to create.
4. Selected the fields I wanted to use (EmpID, FirstName, MI and LastName)
5. Set the index properties to unique and saved the index.
6. Went to the main form and deliberately input a name that was already in
the db.
Result:
Allowed to enter name and info without any error messages. Obviously, I took
a wrong turn somewhere.
Any assistance, gladly appreciated.
I hate to post yet another question about duplicate entries but I could use
some help with this. I have read hundreds of posts regarding this subject and
have seen answers ranging from use a unique index, DLookup or Soundex. This
has only left me confused.
I'm trying to prevent duplicate entries for my school db and the testing
phase has not been successful. I'm not quite sure how to go about doing this
and was looking for some advice.
Problem:
1. We have multiple staff who share a last name though they are not related.
2. We have staff who share a last name, first name and *are* related.
3. We have staff who are husband and wife and share a last name as well as
an address.
Set-up:
We have site employees (teachers and support staff) as well as substitute
staff (teachers and support staff), community staff and district staff.
Adresses and emergency contact information is related 1:1 to the site
employee table. Therefore, I will not know the address of any other group
besides our own site staff.
Needs:
A way to alert the user that the name entered appears to be a duplicate. I
don't want to get too complicated here. Maybe something like setting the
focus to the combo box in the header and dropping the list to the first
instance of the staff member's name, just so a visual check can be made. I
don't know, maybe there's a better way. I'm open to suggestions. I tried to
create a unique index using information found in one of the many posts I read
but nothing happens when I test it, so I must be doing something wrong.
Actions taken:
1. I opened tblEmployees in design view.
2. Clicked the index button.
3. Went to the first blank row and named the new index I was trying to create.
4. Selected the fields I wanted to use (EmpID, FirstName, MI and LastName)
5. Set the index properties to unique and saved the index.
6. Went to the main form and deliberately input a name that was already in
the db.
Result:
Allowed to enter name and info without any error messages. Obviously, I took
a wrong turn somewhere.
Any assistance, gladly appreciated.