A
auujxa2 via AccessMonster.com
I've been stuck on something for 2 days, and I can't figure it out. The
varItem is giving me a "0" value, and it should be giving me a concantenated
text value. (i.e. 1 - Monroe NC)
I'm trying to update a tables yes/no [Indicator] field, based on multi
selected items in a list box.
Dim strSQL As String
Dim varItem As Variant
For Each varItem In Me.lstActiveStores.ItemsSelected
strSQL = "UPDATE [MasterTbl] " & "SET [Indicator] = FALSE " & _
"WHERE [Vendor] LIKE " & Me.lstVendors.Column(0) _
And "[Department] LIKE " & Me.cboDepartments.Column(0) _
And "[Stores] LIKE " & varItem
DoCmd.RunSQL strSQL
Next varItem
varItem is giving me a "0" value, and it should be giving me a concantenated
text value. (i.e. 1 - Monroe NC)
I'm trying to update a tables yes/no [Indicator] field, based on multi
selected items in a list box.
Dim strSQL As String
Dim varItem As Variant
For Each varItem In Me.lstActiveStores.ItemsSelected
strSQL = "UPDATE [MasterTbl] " & "SET [Indicator] = FALSE " & _
"WHERE [Vendor] LIKE " & Me.lstVendors.Column(0) _
And "[Department] LIKE " & Me.cboDepartments.Column(0) _
And "[Stores] LIKE " & varItem
DoCmd.RunSQL strSQL
Next varItem