This is a user-configurable option. In the Access window, select Tools, then
Options, then the Tables/Queries tab, and look at the box labelled
'AutoIndex on Import/Create'.
I have not tested this, but my guess would be that in your DDL example the
option would not apply, because the table is being created by Jet rather
than by Access. The option certainly does apply when the table is created
via the Access UI (assuming, of course, there is something in the
'AutoIndex' list). I have not tested whether it also applies when the table
is created programmatically via DAO or ADOX.
One of the first things I do after installing Access on a new PC is always
to delete the contents of that 'AutoIndex' box. Indexing is much to
important to be decided so arbitrarily, IMHO.
--
Brendan Reynolds (MVP)
http://brenreyn.blogspot.com
The spammers and script-kiddies have succeeded in making it impossible for
me to use a real e-mail address in public newsgroups. E-mail replies to
this post will be deleted without being read. Any e-mail claiming to be
from brenreyn at indigo dot ie that is not digitally signed by me with a
GlobalSign digital certificate is a forgery and should be deleted without
being read. Follow-up questions should in general be posted to the
newsgroup, but if you have a good reason to send me e-mail, you'll find
a useable e-mail address at the URL above.