I have a perfectly normal query giving the right results. but when i copy it and try to use it as sql i get red letters.May be i will have to change the commas or something ?
strsql = " SELECT products1.Productid, DLookUp("grade","products","productid = " & [productid]) AS Expr1, products1.items4, products1.branch4 FROM products1 WHERE (((products1.items4)>0))"
strsql = " SELECT products1.Productid, DLookUp("grade","products","productid = " & [productid]) AS Expr1, products1.items4, products1.branch4 FROM products1 WHERE (((products1.items4)>0))"