mare
Registered User.
- Local time
- Yesterday, 22:59
- Joined
- Jan 20, 2003
- Messages
- 16
I want to prevent users from keying in duplicate values in 2 fields in an Access 97 database that holds stock numbers used in our department's printed materials (numbers are used for others to order the materials). As our materials are printed in English and French, the fields are called ENGLISH and FRENCH.
ENGLISH was set as the Primary Key - the numbers are unique it each item (no duplicates allowed). I've set the following:
Data Type: Number (Long Integer)
Required: Yes
Indexed: Yes (No Duplicates)
Yet, when I test the form to input new materials, I can key in a stock number that already exists in ENGLISH - a duplicate!. How can a prevent this from happening?
A further problem. FRENCH - the numbers are also unique to each item, is Required, but is not indexed (should it?). In some cases, where the material is bilingual (one stock number required - English to carry for both), or material does not exist is French, the field in the table for that particular record (material) is left blank. If I Index it, I'm alerted to duplicate values in the FRENCH field (the blanks).
I'm an Access novice, but I'm learning FAST!!!
Any help, suggestions will be greatly appreciated.
ENGLISH was set as the Primary Key - the numbers are unique it each item (no duplicates allowed). I've set the following:
Data Type: Number (Long Integer)
Required: Yes
Indexed: Yes (No Duplicates)
Yet, when I test the form to input new materials, I can key in a stock number that already exists in ENGLISH - a duplicate!. How can a prevent this from happening?
A further problem. FRENCH - the numbers are also unique to each item, is Required, but is not indexed (should it?). In some cases, where the material is bilingual (one stock number required - English to carry for both), or material does not exist is French, the field in the table for that particular record (material) is left blank. If I Index it, I'm alerted to duplicate values in the FRENCH field (the blanks).
I'm an Access novice, but I'm learning FAST!!!
Any help, suggestions will be greatly appreciated.
