I can create a recordset of labels from table test OK. What I then want to do (but can't figure out how) is to put each recordset value label01, label02, ... into a series of text boxes txt_label_01, txt_label_02, that are on a form...
Do I have to fire the recordset into an array (or is it already in an array - I'm not sure). My knowledge becomes a bit shaky here and any help or pointers would be appreciated. Thanks
Do I have to fire the recordset into an array (or is it already in an array - I'm not sure). My knowledge becomes a bit shaky here and any help or pointers would be appreciated. Thanks
Code:
var_lot_id = Combo178.Value
var_recordset_labels = "SELECT label FROM tbl_test WHERE lot_id = " & var_lot_id & ";"
Dim db1 As DAO.Database
Dim rs1 As DAO.Recordset
Set db1 = CurrentDb()
Set rs1 = db1.OpenRecordset(var_recordset_labels)
While Not rs1.EOF
myvar1 = rs1.Fields(0)
rs1.MoveNext
Wend
Set rs1 = Nothing
Last edited: