VB macro for creating index

RandWald

Registered User.
Local time
Yesterday, 23:30
Joined
Jun 20, 2004
Messages
11
Hi. Using Access 2003. What is the syntax for a VB command that would create an single-field index on a dbc database?

Thanks, Randy
 
DoCmd.RunSQL "CREATE index act01 on actualsmaster(product_cd)"

For Unique index :

DoCmd.RunSQL "CREATE unique index act01 on actualsmaster(product_cd)"
 
Thank you!

Jacob, thanks for your reply. All day, I have been surfing, the internet, f1 help and even guessing at what the command should be.

Randy
 

Users who are viewing this thread

Back
Top Bottom