Update Query Problem

kappa

Registered User.
Local time
Tomorrow, 05:31
Joined
May 11, 2005
Messages
21
I am trying to update a field in a table with the word "No" via an update query.
I am not sure of the correct procedure with a string..
The code below, writes a "0" when run..

strSQLstatement = "UPDATE [Tblstock_item] SET [Tblstock_item].[Available] = No " & " WHERE [Tblstock_item].[Stock_Item_No] = " & strStockItem

Thanks in advance
 
Problem Solved..

strSQLstatement = "UPDATE [Tblstock_item] SET [Tblstock_item].[Available] = 'No'
" & "WHERE [Tblstock_item].[Stock_Item_No] = " & strStockItem
 

Users who are viewing this thread

Back
Top Bottom