M
mattia
Hi all, I've used comboboxes to retrieve data from a table, the code is
something like:
strSQL = "SELECT NomeProgetto, IDProgetto FROM
QueryVisualizzaProdottiProgetti WHERE IDProdotto = " & Me.cboProdotto &
";"
Me.cboProgetto.RowSource = strSQL
Me.cboProgetto.BoundColumn = 2
RowSource basically retrieve the data from the query and populate the
combobox. What if I want to do the same with a textbox? The rowsource
attribute is not provided in vba code.
Thanks, Mattia
something like:
strSQL = "SELECT NomeProgetto, IDProgetto FROM
QueryVisualizzaProdottiProgetti WHERE IDProdotto = " & Me.cboProdotto &
";"
Me.cboProgetto.RowSource = strSQL
Me.cboProgetto.BoundColumn = 2
RowSource basically retrieve the data from the query and populate the
combobox. What if I want to do the same with a textbox? The rowsource
attribute is not provided in vba code.
Thanks, Mattia