本文介绍了SQL语句中的动态查找的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 大家好! 我的代码有些麻烦 我有这句话: DoCmd.RunSQL" UPDATE [tbl productlines] SET ProductQuantity = 0 WHERE" ordernumber =" &安培; me.ordernumber; 用于通过按钮从主窗体更新子窗体。 ting是我需要的ProductQuantity使用ProductNumber(它在它尝试更新的子表单中找到)作为标识符查找另一个表中的值。 我曾尝试使用Dlookup(ProductQuantity,TBL ProductInformation,Productnumber =& me.productnumber),但它失败了。 请帮助我:)Hello guys!I have some trouble with my codeI have this sentence:DoCmd.RunSQL "UPDATE [tbl productlines] SET ProductQuantity = 0 WHERE "ordernumber =" & me.ordernumber;"which i use to update a subform from a mainform by button.The ting is i need the ProductQuantity to lookup the value in a another table with a ProductNumber (which it finds at the subform it is trying to update) as identifier.I have tried to use the Dlookup("ProductQuantity", "TBL ProductInformation", "Productnumber=" & me.productnumber) but it fails.Please help me :)推荐答案 展开 | 选择 | Wrap | 行号 展开 | 选择 | Wrap | 行号 这篇关于SQL语句中的动态查找的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-19 16:12