A
auujxa2 via AccessMonster.com
I'm getting a type mismatch error. I want to update the check box [Indicator]
to "0" in [MasterTbl] based on the criteria. Thanks for your help in advance
Dim strSQL As String
Dim varitem As Variant
strSQL = "UPDATE [MasterTbl] " & "SET [Indicator] = No" & "WHERE [MasterTbl].
[Vendor] = " & Me.List22.Column(0) _
And "WHERE [MasterTbl].[Department] = " & Me.Combo64 _
And "WHERE [MasterTbl].[Stores] = " & Me.List7.Column(0)
For Each varitem In Me.List7.ItemsSelected
DoCmd.RunSQL strSQL
Next varitem
to "0" in [MasterTbl] based on the criteria. Thanks for your help in advance
Dim strSQL As String
Dim varitem As Variant
strSQL = "UPDATE [MasterTbl] " & "SET [Indicator] = No" & "WHERE [MasterTbl].
[Vendor] = " & Me.List22.Column(0) _
And "WHERE [MasterTbl].[Department] = " & Me.Combo64 _
And "WHERE [MasterTbl].[Stores] = " & Me.List7.Column(0)
For Each varitem In Me.List7.ItemsSelected
DoCmd.RunSQL strSQL
Next varitem