I am trying to update a table using information from the table and I am running into a type coversion failure. My goal is to update those records that are showing a qty sold and quantity return both equal to zero. The field I want updated is the COGS field. It should be equal to a field called EXT_SALES which is the total cost of the sale. The table is set up that the EXT_SALES and COGS fields are both data type "double".
UPDATE SalesResults SET [SalesResults].EXT_SALES_AMT = "COGS"
WHERE ((([SalesResults].OFFRNG_QTY_SLD)=0) AND (([SalesResults].OFFRNG_QTY_RTN)=0))
WITH OWNERACCESS OPTION;
When I run the query using the view button the correct information appears, however when I use the run button is tells me it is about to update the appropriate records after selecting yes it tells me the appropriate records will not be updated because of a type conversion failure. No other reasons impact the records requiring updates.
Any help would be appreciated.
Thanks
This message was edited by sean98 on 2003-02-21 12:31
UPDATE SalesResults SET [SalesResults].EXT_SALES_AMT = "COGS"
WHERE ((([SalesResults].OFFRNG_QTY_SLD)=0) AND (([SalesResults].OFFRNG_QTY_RTN)=0))
WITH OWNERACCESS OPTION;
When I run the query using the view button the correct information appears, however when I use the run button is tells me it is about to update the appropriate records after selecting yes it tells me the appropriate records will not be updated because of a type conversion failure. No other reasons impact the records requiring updates.
Any help would be appreciated.
Thanks
This message was edited by sean98 on 2003-02-21 12:31