Re: VB Net and ADOX
- From: "Patrice" <scribe@xxxxxxxx>
- Date: Fri, 18 Aug 2006 14:21:23 +0200
Try :
fld.Properties("AutoIncrement").Value=True
as fld.Properties("AutoIncrement") returns an object, not a boolean and you
don"t have any more non indexed default properties in VB.NET....
My personal preference would be likely to use SQL statements whenever
possible...
--
Patrice
"T Clancey" <tull@xxxxxxxxxxxxxxxx> a écrit dans le message de news:
69KdnQp_6KZWMXjZRVnygw@xxxxxxxxx
Hi.
I have an application that needs to update a database, as I'm using vb net
and an access database I have to do this using ADOX. I don't think there
is
another way.
I have found all sorts of examples which are basically the same, but none
of
them work!
I can create my tables and fields without any problems at all, but I want
to
create an AutoNumber field. All the examples state something like,
fld.properties("Autoincrement")=true. Vb net tells me that the 'Item' is
read only, I can't find anything else that helps.
Anyone come across this? Or have an answer?
Cheers,
Tull.
.
- Follow-Ups:
- Re: VB Net and ADOX
- From: T Clancey
- Re: VB Net and ADOX
- References:
- VB Net and ADOX
- From: T Clancey
- VB Net and ADOX
- Prev by Date: Re: force immediate VS05 compile?
- Next by Date: Re: Parsing between a character and sysmbol
- Previous by thread: VB Net and ADOX
- Next by thread: Re: VB Net and ADOX
- Index(es):
Relevant Pages
|