Re: Trouble using ADOX to create linked tables in jet database fro
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Mon, 11 Jun 2007 11:53:39 -0400
sudhi wrote:
First of all thank you very much for your response
Actually I am using VB.Net not the classic VB
I tried the code you suggested , but i am getting an "Invalid
argument". ComException while I try to add the table to the catalog
Any idea why this is happening ?
Yes. your code is attempting to add the primary key to the linked table,
which is illegal (you cannot change the design of linked objects). From
MSDN:
Note Your data provider may not support all properties of Table
objects. An error will occur if you have set a value for a property that
the provider does not support. For new Table objects, the error will
occur when the object is appended to the collection. For existing
objects, the error will occur when setting the property
I don't know of any way to accomplish what you need outside of adding
the primary key to the source table.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
.
- References:
- Prev by Date: Re: Trouble using ADOX to create linked tables in jet database fro
- Next by Date: Re: Error -2147217833
- Previous by thread: Re: Trouble using ADOX to create linked tables in jet database fro
- Next by thread: Re: Trouble using ADOX to create linked tables in jet database fro
- Index(es):
Relevant Pages
|
|