This has been bugging me for days now, I have forgotten half (at least) of all I thought I knew....
I am attempting to open a DAO recordset [rst] and write the contents into textboxes. The size of the recordset can vary, so:
moveFirst
For i = 1 To totalrecords 'from rst.RecordCount
Me.txt(i).visible = True
Me.txt(i).Caption = rst.Fields(i).Value
rst.MoveNext
Next i
This is not working as it will not compile, the report is "item not found in this collection.
I know it should be simple but please would some-one tell/show me where I am going wrong?
Telephoto
I am attempting to open a DAO recordset [rst] and write the contents into textboxes. The size of the recordset can vary, so:
moveFirst
For i = 1 To totalrecords 'from rst.RecordCount
Me.txt(i).visible = True
Me.txt(i).Caption = rst.Fields(i).Value
rst.MoveNext
Next i
This is not working as it will not compile, the report is "item not found in this collection.
I know it should be simple but please would some-one tell/show me where I am going wrong?
Telephoto