I have tryed the code
DoCmd.RunSQL "UPDATE tbldimensies SET verkocht=DLookup([SomVanStuks], ""query1"", ""BarcodeProducent= '"" & Serienummer & ""'"")"
I think the code is ok but when I execute this code I get an error with fieldconversion.
somvanstuks type long, verkocht type long, barcodeproducent type text, serienummer type text. I really do not see the problem.
DoCmd.RunSQL "UPDATE tbldimensies SET verkocht=DLookup([SomVanStuks], ""query1"", ""BarcodeProducent= '"" & Serienummer & ""'"")"
I think the code is ok but when I execute this code I get an error with fieldconversion.
somvanstuks type long, verkocht type long, barcodeproducent type text, serienummer type text. I really do not see the problem.