Link to home
Start Free TrialLog in
Avatar of johnhardy
johnhardyFlag for United Kingdom of Great Britain and Northern Ireland

asked on

access.mdb unique field

Hello
I have an access.mdb table with three fields
ID Key autonum
supplierID number
StockID          number      
I want to combine supplierID and StockID in one and make it unique
Is this possible in access.mdb?
Regards
John
Avatar of jerryb30
jerryb30
Flag of United States of America image

You could create a composite index of the two fields, making them unique.  This would prevent the combo of the two from being added to the db.
Avatar of johnhardy

ASKER

Thanks
Can you please say how I create a composite field in access please?
ASKER CERTIFIED SOLUTION
Avatar of adraughn
adraughn
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Many thanks for the answers.

Very helpful
Regards
John