Home All Groups Group Topic Archive Search About

Trying to access tabledef info

Author
29 Jan 2006 10:13 PM
Bookreader
I am tying to get the column attributes on a table named charges.

Can someone point me to a tutorial or to some sample code on how to do
this.

What objects (DAO or ADO) do I need to use this?

Thanks.

Author
30 Jan 2006 1:17 AM
MikeD
"Bookreader" <bookreader***@yahoo.com> wrote in message
news:defqt15idf3icqve5gq839vm4croumtb4t@4ax.com...
>I am tying to get the column attributes on a table named charges.
>
> Can someone point me to a tutorial or to some sample code on how to do
> this.
>
> What objects (DAO or ADO) do I need to use this?


For ADO, look up the OpenSchema method of the Connection object.  Pass it
the adSchemaColumns constant.  See ADO's Help on the OpenSchema method and
the SchemaEnum constants for a list of the information returned.  Note that
this method returns a recordset.

--
Mike
Microsoft MVP Visual Basic
Author
30 Jan 2006 2:46 AM
Bookreader
Show quote Hide quote
On Sun, 29 Jan 2006 20:17:16 -0500, "MikeD" <nob***@nowhere.edu>
wrote:

>
>"Bookreader" <bookreader***@yahoo.com> wrote in message
>news:defqt15idf3icqve5gq839vm4croumtb4t@4ax.com...
>>I am tying to get the column attributes on a table named charges.
>>
>> Can someone point me to a tutorial or to some sample code on how to do
>> this.
>>
>> What objects (DAO or ADO) do I need to use this?
>
>
>For ADO, look up the OpenSchema method of the Connection object.  Pass it
>the adSchemaColumns constant.  See ADO's Help on the OpenSchema method and
>the SchemaEnum constants for a list of the information returned.  Note that
>this method returns a recordset.
Thanks.