Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Indexing Tables on multiple fields

Status
Not open for further replies.

bhujanga

Programmer
Oct 18, 2007
181
US
I have a tale with an inventory date field an inventory item and a quantity field. I want to make it so you can duplicate the date as many times as needed for each item that needs inventoried, but also so it won't allow the same date-item pair to appear more than once. It seems like I used to be able to do this sort of thing by indexing both fields and saying 'no duplicates', but if I do that it won't let me enter the date twice at all.

How should I manage this>
Thanks.
 
Use a composite key, ie a single index based on the two fields.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
I can't figure out how to get it to do that. If I select both fields, all of the property fields go away, right clicking doesn't bring anything up either. How do I do it?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top