|
-
Sep 21st, 2007, 11:52 AM
#1
Thread Starter
PowerPoster
Create CONSTRAINT (not unique)
How do you create a CONSTRAINT (index) for Access in SQL that is NOT:
1) a PrimaryKey
2) or UNIQUE
In other words I want a DateTime Index where the date may appear more than once.
============
These work:
& "CONSTRAINT PrimaryKey PRIMARY KEY (fldID)), " _
& "CONSTRAINT idxDateTime UNIQUE (fldDateTime));"
==============================
This fails:
& "CONSTRAINT idxDateTime (fldDateTime));"
Last edited by dw85745; Sep 21st, 2007 at 12:25 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|