shijufrancis
April 24th, 2001, 02:43 PM
hi all
can any one tell me how to find the attribute of a column retrived from a database.I have tried with the following code.It works perfectly with all the enumvalues such as adFldIsNullable,adFldFixed etc. but not with adFldKeyColumn...can any one can help me out please??
the code is as follows
*********************************************
For Each field In rs1.Fields
If CBool(field.Attributes And adFldKeyColumn) Then
MsgBox ("Primary Key")
End If
Next field
*************************************
regards
shijufrancis
can any one tell me how to find the attribute of a column retrived from a database.I have tried with the following code.It works perfectly with all the enumvalues such as adFldIsNullable,adFldFixed etc. but not with adFldKeyColumn...can any one can help me out please??
the code is as follows
*********************************************
For Each field In rs1.Fields
If CBool(field.Attributes And adFldKeyColumn) Then
MsgBox ("Primary Key")
End If
Next field
*************************************
regards
shijufrancis