I have something like this:
Obviously, this doesn't work (run-time error 3625; item cannot be found in the collection...), highlighted line is the one which I bolded.
Adding new records would go through the loop, this is just testing code.
Anybody knows if this is possible and if so, the right syntax?
Thank you!
Code:
Dim ctlName(5) As String Dim TableField(5) As String ctlName(1) = "txtTextA" TableField(1) = "texta" 'dim rs.... 'dim cn... rs.Open "tblTest", cn, adOpenDynamic, adLockOptimistic [B]rs!TableField(1) = "Form_frmTest." & ctlName(1)[/B] rs.AddNew
Adding new records would go through the loop, this is just testing code.
Anybody knows if this is possible and if so, the right syntax?
Thank you!
Comment