I am using access 2003. I am trying to read the index property with limited success. The index property has three modes:
Indexed- No, Yes (Duplicates OK) and Yes No Duplicates. I code will properly pick no with no problem but I cant figure out how to tell the difference between the two yes answers. I know the problem is .Attributes does not switch to a 1 like I had hoped. But I don't know what other property I can use. Any help is appreciated.
Indexed- No, Yes (Duplicates OK) and Yes No Duplicates. I code will properly pick no with no problem but I cant figure out how to tell the difference between the two yes answers. I know the problem is .Attributes does not switch to a 1 like I had hoped. But I don't know what other property I can use. Any help is appreciated.
Code:
If dBase.TableDefs(lTbl).Indexes.Count = 1 Then
.Range("K" & lRow) = "No"
End If
If dBase.TableDefs(lTbl).Indexes.Count = 2 And dBase.TableDefs(lTbl).Attributes = 0 Then
.Range("K" & lRow) = "Yes No Duplicates"
End If
If dBase.TableDefs(lTbl).Indexes.Count = 2 And dBase.TableDefs(lTbl).Attributes = 1 Then
.Range("K" & lRow) = "Yes (Duplicates OK)"
End If