rjchristensen
New Member
Hello all,
I have been trying to get a selected table name from one listbox and make it the rowsource of a second listbox. When I click on a value in the first listbox, I get the following error message:
Run-time Error '380'
Could not set the rowsource property. Invalid property value.
The code is as follows:
>>> use code - tags <<<
When viewed via the debugger the variable strTableName value is shown as <Expression not defined in context>
Any help here would be greatly appeciated
TIA
Rich
I have been trying to get a selected table name from one listbox and make it the rowsource of a second listbox. When I click on a value in the first listbox, I get the following error message:
Run-time Error '380'
Could not set the rowsource property. Invalid property value.
The code is as follows:
>>> use code - tags <<<
Code:
Private Sub lbxTableList_Click()
Dim strTableName As String
If lbxTableList.ListCount <> -1 Then
strTableName = "LU" & Trim(lbxTableList.Value)
lbxTableValues.RowSource = strTableName
End If
End Sub
Any help here would be greatly appeciated
TIA
Rich
Last edited by a moderator: