Below is an attempt to move field contents from a single record within a DAO recordset. The MsgBox is simply confirming correct data content. The two assignment statements that follow the MsgBox confirm that the contents of field "Mov1" and "Mov1t" do in fact exist and can be assigned to corresponding unbound text boxes. However, when I attempt to loop through 16 sets of ordered-pairs I get the error the item not found in collection.
I'm concluding the expression rsReplicate!Field("Mov" & I) is syntactically incorrect? Yes?
The code:
Code:
'Load up the unbound controls from the 16 Movements/Parts and their times
MsgBox rsReplicate!Mov1 & " " & rsReplicate!Mov1t
Me.tbMov1 = rsReplicate!Mov1
Me.t1 = rsReplicate!Mov1t
For I = 1 To 16
Me("tbMov" & I) = rsReplicate!Field("Mov" & I) <<<<<<<<<<<<<<<<< Field reference must be wrong????
Me("t" & I) = rsReplicate!Field("Mov" & I & "t")
Next I
The MsgBox display:
The error: