Hi guys,
I've literally starting learning VBA a few days ago so plz keep that in mind
I have learnt some of the basics, but im just looking at DAO.
In the following statement, what is the purpose of the - 1 ?? Why is this needed?
For i = 0 to db.TableDefs(0).Fields.Count - 1
Debug.print db.TableDefs(0).Fields(i).Name
Next
Any help appreciated.