PC Review


Reply
Thread Tools Rate Thread

creating a multiple field key index in access 2007

 
 
=?Utf-8?B?ZGVubmlzdDY4NQ==?=
Guest
Posts: n/a
 
      1st Apr 2007
I've searched the kb without an answer. Can somebody help? It's got to be
easy.

dennist685
 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      1st Apr 2007
If the fields are contiguous, open the table in design view, select the
multiple fields at once (using the "record Selecter" to the left of the
field name), and click the Key icon on the toolbar.

If the fields are spread apart, or you want the index in a different order,
open the Indexes dialog (View menu, in table design). Enter a name for the
index in the first column, and the first field beside that. On subsequent
lines of the dialog, leave the Index Name column blank (indicating this row
is part of the same index above), and enter the field name. The dialog will
look something like this:
Index Name Field Name Sort Order
========= ======== =======
PrimaryKey CompanyName Ascending
City Ascending
State Ascending

If you wanted to create the index programmatically instead of via the
interface, see these examples:
http://allenbrowne.com/func-DAO.html#CreateIndexesDAO
http://allenbrowne.com/func-ADOX.html#CreateIndexesAdox

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"dennist685" <(E-Mail Removed)> wrote in message
news:47930717-7963-44A8-B721-(E-Mail Removed)...
> I've searched the kb without an answer. Can somebody help? It's got to
> be
> easy.
>
> dennist685


 
Reply With Quote
 
=?Utf-8?B?ZGVubmlzdDY4NQ==?=
Guest
Posts: n/a
 
      1st Apr 2007
Thank you kindly Allen for a straightforward to the point answer.

dennis

"Allen Browne" wrote:

> If the fields are contiguous, open the table in design view, select the
> multiple fields at once (using the "record Selecter" to the left of the
> field name), and click the Key icon on the toolbar.
>
> If the fields are spread apart, or you want the index in a different order,
> open the Indexes dialog (View menu, in table design). Enter a name for the
> index in the first column, and the first field beside that. On subsequent
> lines of the dialog, leave the Index Name column blank (indicating this row
> is part of the same index above), and enter the field name. The dialog will
> look something like this:
> Index Name Field Name Sort Order
> ========= ======== =======
> PrimaryKey CompanyName Ascending
> City Ascending
> State Ascending
>
> If you wanted to create the index programmatically instead of via the
> interface, see these examples:
> http://allenbrowne.com/func-DAO.html#CreateIndexesDAO
> http://allenbrowne.com/func-ADOX.html#CreateIndexesAdox
>
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia
> Tips for Access users - http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
>
> "dennist685" <(E-Mail Removed)> wrote in message
> news:47930717-7963-44A8-B721-(E-Mail Removed)...
> > I've searched the kb without an answer. Can somebody help? It's got to
> > be
> > easy.
> >
> > dennist685

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating an Index across multiple documents Joseph C. Talbott Microsoft Word Document Management 2 6th Jan 2010 08:45 PM
Problem creating Multiple page index entries in word 2007? th Microsoft Word Document Management 4 3rd Jul 2009 11:51 PM
Creating a listing from multiple tables in Access 2007 Bob H Microsoft Access Database Table Design 3 30th Nov 2008 09:32 PM
Can I open the source record stored in a Multiple value Combo box field, Access 2007 TechyGal Microsoft Access 2 20th Sep 2007 01:47 PM
Re: multiple field index Wayne Morgan Microsoft Access 0 25th May 2004 05:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:21 AM.