K
Kro
I have a form that selects a client from a combo box. There is a sub-form
with a tree list control that I want to populate info applicable to the
client selected by the user. I have the the following code in the Form Load
event to do this, but it is not working:
'Build recordset for Categories (from a pre-selected client) at top level
SQL = "SELECT Categories.catID, Categories.pID, Categories.catName " & _
"FROM Categories " & _
"WHERE Categories.pID = [Forms]![frmComponents]![cbopID] " & _
"ORDER BY Categories.catName"
Does the problem reside in the code or the event that handles the code?
with a tree list control that I want to populate info applicable to the
client selected by the user. I have the the following code in the Form Load
event to do this, but it is not working:
'Build recordset for Categories (from a pre-selected client) at top level
SQL = "SELECT Categories.catID, Categories.pID, Categories.catName " & _
"FROM Categories " & _
"WHERE Categories.pID = [Forms]![frmComponents]![cbopID] " & _
"ORDER BY Categories.catName"
Does the problem reside in the code or the event that handles the code?