This example uses a loop counter so you can start where you wish:
Function CycleFields()
Dim rs As DAO.Recordset
Dim fld As DAO.Field
Dim i As Integer
Set rs = DBEngine(0)(0).OpenRecordset("SELECT * FROM MyTable;")
For i = 0 To rs.Fields.Count - 1
Set fld = rs.Fields(i)
Debug.Print fld.Name, fld.Type
Next
Set fld = Nothing
rs.Close
Set rs = Nothing
End Function
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users -
http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Steve" <sp**@nospam.net> wrote in message
news:Rh*************@newsread1.news.atl.earthlink. net...
What is the code to cycle through the fields of a recordset starting at
the second field through the last field when the index of the last field is
not expliciyly known?
Thanks for all help!
Steve