Seigfried,
Sorry I gave you the wrong folder for the DAO dll - late night stupidity I
think.
There are a lot of indicators that DAO is being phased out. The absence of a
..NET assembly for DAO in VS.NET is a pretty good indicator in itself of the
direction that Microsoft is going. I also agree that there are aspects of
the Access schema that are way beyond any other - like the ability to define
the default control for a column. But it looks like we're being strongly
encouraged to move away from DAO. I seem to remember coming across some info
in that line earlier this year but I can't remember where - probably the
Microsoft web site. As far as Access is concerned, I don't see it as
obsolescent technology and I've heard nothing along those lines. imho I
think its a work of genius. In fact, the Microsoft Access Product Team are
currently calling for input to make sure that mdb conversion to the next
version is as robust as possible.
I've only written schema interrogators using ADOX and ADO.NET primarily for
data validation routines prior to database updates. Things like "is the
user's data valid based on the schema definition for the column" so I
haven't delved into the extended column properties like "description" or
"default control". I'll give it a try when I have some time over the next
few days and let you know what I find.
David Straker
"Siegfried Heintze" <siegfried@heintze.com> wrote in message
news:e8OxWVngDHA.988@TK2MSFTNGP10.phx.gbl...[color=blue]
>
>
>
>[color=green]
> >For properties of tables and columns, you'd be better off
> >looking at the System.Data.DataTable and
> >System.Data.DataColumn objects in VS.NET if you're
> >starting from scratch - that's the direction things are
> >going. I'm not sure if AdoDotAnything will retrieve
> >the property for the "Display Control" of an
> >Access table - I haven't tried that.[/color]
>
> I've tried that -- did I miss something? I wrote a program that used a
> treeview view to display everything I could find in the DataTable and
> DataColumn and I could not find the MSAccess specific metadata like the
> comments for the table and the columns and the control type used for
> each column.
>
> This does not surprise me -- why would a generic API have MSAccess
> specific stuff. I also tried using ADOX and could get some but not all
> of the metadata.
>
> MSAccess is the only database (that I know of) that lets you store a
> control (checkbox, dropdown list, etc...) for each column you define.
>
> So why do you say DAO is going away? I hope not! It is the only way of
> doing MSAccess specific stuff! Is there a better API for MSAccess
> specific stuff? That would be nice! Or should I infer from you statement
> that MSAccess is not dead yet but dying?
>
> Thanks,
> Siegfried
>
> *** Sent via Developersdex
http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it![/color]