Expand|Select|Wrap|Line Numbers
- 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
- rs!TableField(1) = "Form_frmTest." & ctlName(1)
- 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!