FuzMic
DataBase Tinker
- Local time
- Today, 19:32
- Joined
- Sep 13, 2006
- Messages
- 744
Up the learning Curve series .. .mdb ODBC link to SQL2k/SQLEXPRESS server
Situation
1) A .mdb needs to refresh link to a "VIEW" in another DNS, set to an .mdf in SQLSrv.
2) Using GUI the link is straight forward to link to a unique field in the VIEW so that the latter is updatable. This will manifest as "_uniqueindex" in the Indexes collection using TableDef (same manifestion when you browse the View in Table Design via Access)
Issue & Tinkering
1) On the link.refresh using TableDef codes, the index don't exist
2) Tried using TableDef namely .. CreateIndex, CreateField, Append
3) Tried using SQL Pass-Through Query that has working ODBC Connect String.
The Query is as follows
CREATE UNIQUE INDEX NewIndex ON ViewName ([UniqueKeyField]);
But ODBC fail call .. not Schema Bound. After setting VIEWwith SBound in the SQL Srv, the next fail call
mention that there is no "unique Cluster Index". The VIEW as it is, is fine using GUI to set the Unique
Record Identifier.
.. hence needs rapid help.
Question
How to use codes to create the unique field so that the VIEW is updateable. Thanks in Advance.
Situation
1) A .mdb needs to refresh link to a "VIEW" in another DNS, set to an .mdf in SQLSrv.
2) Using GUI the link is straight forward to link to a unique field in the VIEW so that the latter is updatable. This will manifest as "_uniqueindex" in the Indexes collection using TableDef (same manifestion when you browse the View in Table Design via Access)
Issue & Tinkering
1) On the link.refresh using TableDef codes, the index don't exist
2) Tried using TableDef namely .. CreateIndex, CreateField, Append
3) Tried using SQL Pass-Through Query that has working ODBC Connect String.
The Query is as follows
CREATE UNIQUE INDEX NewIndex ON ViewName ([UniqueKeyField]);
But ODBC fail call .. not Schema Bound. After setting VIEWwith SBound in the SQL Srv, the next fail call
mention that there is no "unique Cluster Index". The VIEW as it is, is fine using GUI to set the Unique
Record Identifier.
.. hence needs rapid help.
Question
How to use codes to create the unique field so that the VIEW is updateable. Thanks in Advance.

Last edited: