Hi there
I have 12 Comboboxs on a form and i am trying to use a for next loop to copy the contents from each combo box to a variable and then copy to an underlying table.
Comboqty is a Variant and contains the number of ComboBox's visible on the form !!!
The Comboboxs are called comboName1, comboName2 and so on up to comboName12 on a form called Form_FirstandLast and the table is called alldetails and the fields are called comboname1,Comboname2and so on to comboName12
'*********
For I = 1 To ComboQty
Form_FirstandLast("Comboname" & I).SetFocus
alldetails!("ComboName" & I) = Form_FirstandLast("ComboName" & I).Text
Next I
Any Help in this problem would be greatly appreciated !!!!
I am new to ADO !
Regards
Murray
I have 12 Comboboxs on a form and i am trying to use a for next loop to copy the contents from each combo box to a variable and then copy to an underlying table.
Comboqty is a Variant and contains the number of ComboBox's visible on the form !!!
The Comboboxs are called comboName1, comboName2 and so on up to comboName12 on a form called Form_FirstandLast and the table is called alldetails and the fields are called comboname1,Comboname2and so on to comboName12
'*********
For I = 1 To ComboQty
Form_FirstandLast("Comboname" & I).SetFocus
alldetails!("ComboName" & I) = Form_FirstandLast("ComboName" & I).Text
Next I
Any Help in this problem would be greatly appreciated !!!!
I am new to ADO !
Regards
Murray