J Trahair
Well-known member
I am trying to query an Access database table to get information about each column eg. Default Value (in a numeric field usually 0 but not always), and whether a column is indexed (eg. Yes (Duplicates OK)). I am using the following code to get some of the information - I just need these two now.
gives me the field data type eg. System.String etc., that's good.
but
for Long and Double gives me minus 1 or blank every time, which is not the Default Value.
What should I do?
Thanks in advance.
VB.NET:
objDs1.Tables(0).Columns(numColNo).DataType.ToString
but
VB.NET:
objDs1.Tables(0).Columns(numColNo).DefaultValue
What should I do?
Thanks in advance.