I am trying to write a function that passes name on the current form and then loads a combobox on that form with names from a table in the DB.
If frmName.Controls = combox Then
cboName.Name = frmName.Controls.Name
End If
or something like this
Do Until mrst.EOF
strName = mrst.Fields(3) + ", " + mrst.Fields(4)
frmName.cboName.AddItem (strName)
Loop
If frmName.Controls = combox Then
cboName.Name = frmName.Controls.Name
End If
or something like this
Do Until mrst.EOF
strName = mrst.Fields(3) + ", " + mrst.Fields(4)
frmName.cboName.AddItem (strName)
Loop