SteveBriscoe
New member
- Local time
- Today, 14:53
- Joined
- May 21, 2009
- Messages
- 7
Hi,
I'm trying to select a row from a listbox which then changes the rowsource on another form based on the row selected, however, the first row of the listbox is always used insted of the actual row I am double-clicking on.
My code looks like this...
Dim VarItem As Variant
For Each VarItem In Me!List0.ItemsSelected
Value = List0.Column(1, RowSelected)
Forms![Search_Articles].[RecordSource] = "Select * From Articles Where article_subject = '" & Value & "'"
Next VarItem
I've searched these forums/google and tried various things but just can't get it to return anything but the first row of the listbox??
Any help would be appreciated
Thanks
I'm trying to select a row from a listbox which then changes the rowsource on another form based on the row selected, however, the first row of the listbox is always used insted of the actual row I am double-clicking on.
My code looks like this...
Dim VarItem As Variant
For Each VarItem In Me!List0.ItemsSelected
Value = List0.Column(1, RowSelected)
Forms![Search_Articles].[RecordSource] = "Select * From Articles Where article_subject = '" & Value & "'"
Next VarItem
I've searched these forums/google and tried various things but just can't get it to return anything but the first row of the listbox??
Any help would be appreciated
Thanks