I have used the following way to determine if a column is auto-increment:
att = Rs1->Fields->GetItem((long)nIndex)->Attributes;
bAutoIncrement = att & adFldRowID;
But it doesn't work at all. Do anyone have good ideas about this? Thanks in advance.