rikklaney1
Registered User.
- Local time
- Today, 08:14
- Joined
- Nov 20, 2014
- Messages
- 157
Hi guys. I'm having a problem with an update statement. It should set a yes/no field to yes but it asked me to "enter parameter value" when run. Do any of you see anything wrong with this statement?
For x = 0 To Me.zlist.ListCount - 1
If Me.zlist.Column(5, x) = False And Me.zlist.Column(6, x) = True Then
DoCmd.RunSQL "UPDATE [tbl_switchesstations] SET [wait] = True WHERE [tbl_switchesstations].[stcode] =" & Me.zlist.Column(1, x)
End If
Next
For x = 0 To Me.zlist.ListCount - 1
If Me.zlist.Column(5, x) = False And Me.zlist.Column(6, x) = True Then
DoCmd.RunSQL "UPDATE [tbl_switchesstations] SET [wait] = True WHERE [tbl_switchesstations].[stcode] =" & Me.zlist.Column(1, x)
End If
Next