PC Review


Reply
Thread Tools Rate Thread

Create Multiple Index

 
 
NEWER USER
Guest
Posts: n/a
 
      28th Mar 2010
Access 2007
I want to build a multiple index on a table in my database. Can anyone tell
me why this does not work?

Private Sub Command0_Click()

DoCmd.RunSQL "CREATE INDEX Models ON tblCatalogModels, (Year, Make, Model)"

End Sub
 
Reply With Quote
 
 
 
 
Dirk Goldgar
Guest
Posts: n/a
 
      28th Mar 2010
"NEWER USER" <(E-Mail Removed)> wrote in message
news:88DBF188-1446-43D3-8C5F-(E-Mail Removed)...
> Access 2007
> I want to build a multiple index on a table in my database. Can anyone
> tell
> me why this does not work?
>
> Private Sub Command0_Click()
>
> DoCmd.RunSQL "CREATE INDEX Models ON tblCatalogModels, (Year, Make,
> Model)"
>
> End Sub



You have an unwanted comma after the table name.

--
Dirk Goldgar, MS Access MVP
Access tips: www.datagnostics.com/tips.html

(please reply to the newsgroup)

 
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
Can I create a single index from multiple files? James Microsoft Word Document Management 5 7th Aug 2009 09:20 PM
How do I create an index for multiple word documents? dbfpuc Microsoft Word Document Management 5 23rd Jan 2008 09:45 AM
Create an index based on multiple criteria kidkosmo2@yahoo.com Microsoft Access 2 7th Sep 2007 04:47 AM
CREATE INDEX Multiple Variables SQL Jerad via AccessMonster.com Microsoft Access VBA Modules 3 24th Mar 2006 10:44 PM
How to create multiple field UNIQUE index? ljubo lecic via AccessMonster.com Microsoft Access Forms 3 13th Mar 2005 01:47 AM


Features
 

Advertising
 

Newsgroups
 


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