Click to See Complete Forum and Search --> : Description of a Field in a Access Table


Gustavo Lermen
April 23rd, 1999, 09:05 AM
How can I get the descritption of a field in a Access table, using VC 5?

SKB
April 23rd, 1999, 09:33 AM
If you are using CRecordsets you can make a call CRecordset::GetODBCFieldInfo which will return the following structure.
struct CODBCFieldInfo
{
CString m_strName;
SWORD m_nSQLType;
UDWORD m_nPrecision;
SWORD m_nScale;
SWORD m_nNullability;
};

Hope this helps