The reference worked!
I post my test program humbly below. The trick is to know that
"ISAUTOINCREMENT" was a property of a field in the adodb.recordset.
As you said the Microsoft link answered the question:
http://support.microsoft.com/default.aspx?scid=kb;en-us;304100
thanks Roy-Vidar!
Respectfully,
Ken Higgins
Working Test Code follows:
'----------------------------------------------------------------------------
Public Sub TestAutoNum2()
'code that worked on my machine thank you
Dim strConnect As String
Dim adoCON As ADODB.Connection
Dim rs As ADODB.Recordset
Dim X As Long
strConnect = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=W:\Billing051\BillingDatabase051.mdb;" & _
"Persist Security Info=False"
Set adoCON = New ADODB.Connection
With adoCON
.ConnectionString = strConnect
.Open
End With
Set rs = New ADODB.Recordset
rs.ActiveConnection = adoCON
rs.CursorLocation = adUseServer
rs.CursorType = adOpenStatic
rs.Open "Select * from [VolumeDiscountTable];"
For X = 0 To rs.Fields.Count - 1
If rs.Fields(X).Properties("ISAUTOINCREMENT") = True Then
MsgBox "Field " & rs.Fields(X).Name & " is Autoincrement"
End If
Next X
rs.Close
Set rs = Nothing
Set adoCON = Nothing
End Sub