我在访问 2010 时遇到问题,我的 dlookup 运行速度非常慢,但如果我已经打开了保存的查询,它运行得很快。任何想法都必须知道为什么会这样以及如何解决这个问题
编辑
txtPurchase_Price = DLookup("Purchase_Price", "qryPurchaseInfo", "ID = " & check)
那是dlookup
查询的sql是
SELECT Receiving.Serial,Purchase_Info.Purchase_Price, Purchase_Info.Check_Number,
Purchase_Info.Purchase_Date, Purchase_Info.ID, Receiving.Source
FROM Purchase_Info INNER JOIN Receiving ON
Purchase_Info.ID = Receiving.Purchase_Price_ID;