
Composite Keys in VB4.0ee
Quote:
>Hi There
>I am a novice programmer using VB4.0 enterprise edition.
>I have one query: How do you define compound keys, ie.keys consisting of more
>than one field in a table, using the access database?
>Any help will be appreciated...
>tia
>Duncan
Look in the help file under <Index objects | Index objects, Indexes
Collections>. There is an example there on how to do this as well as
other properties you may set for your indexes. In short, you first
create an index, then add (append) as many fields to that index as you
want. Set the properties of the index that you want (eg unique,
primary, etc) and then update the table definition.
Fred Baptiste