Programatically add a constraint. ADOX?
- From: "Jacob Havkrog" <a@xxx>
- Date: Wed, 25 Jan 2006 19:09:49 +0100
Dear group.
Thansk for your help. Now, I try to do this
ALTER TABLE [Kørsler]
ADD CONSTRAINT RunIDRef
FOREIGN KEY ([KørselsID])
REFERENCES Posteringer ([KørselsID])
ON DELETE CASCADE ON UPDATE CASCADE
but get problems with Access because of the use of the Danish letter "ø" (ie
a letter outside the A-Z range). Normally Access will allow me to use
letters like that, as long as I enclose names in square bracket, as
illustrated above.
But with this code, I get an error message telling me, that "KørselsID" is
an illegal name for creating a constraint.
Unfortunaltely, it is too late for me to change the names of the tables and
fields.
A few days ago, I got kind help on how to drop constraints. My troubles
turned out to be related to this problem too. Now, can you help me with this
problem? Can I do this thing using ADOX ? Could you perhaps point me to som
code examples?
Cheers
Jacob
.
- Follow-Ups:
- Re: Programatically add a constraint. ADOX?
- From: Jacob Havkrog
- Re: Programatically add a constraint. ADOX?
- Prev by Date: Re: TADOTable problem
- Next by Date: Locate Speed in ADO
- Previous by thread: TADOTable problem
- Next by thread: Re: Programatically add a constraint. ADOX?
- Index(es):
Relevant Pages
|