Hi
I have a system DSN that points to an access database. Everything works fine on my dev PC and in MS Access itself but on the website there are a couple of queries that return no records. The sql gets used with different critria and some work but others don't. Does anyone have any ideas where to look. I've pasted in a working and non working one, there's so little difference and it works fine in Access and on the Dev PC to the same database.
Thanks
Steve
Here's a working SQL
SELECT Tblprducts.firstname & ' ' & Tblprducts.surname as Fullname, TblPrducts.ProductCode, TblPrducts.ProductName, TblPrducts.ProductPrice, TblPrducts.Inventory, TBLPrducts.id, TblPrducts.Mancode, TblPrducts.LongDesc, TblPrducts.ProductManufacturer, TblPrducts.RetailPrice, TblPrducts.Image, BibleInfo.Translation1 FROM BibleInfo RIGHT JOIN TblPrducts ON BibleInfo.ProductCode = TblPrducts.ProductCode WHERE (((TblPrducts.ManCode)='Books')) AND TblPrducts.ProductCategory = 'BIBLE REFERENCE' Order By -TBLPrducts.id
and one the doesn't
SELECT Tblprducts.firstname & ' ' & Tblprducts.surname as Fullname, TblPrducts.ProductCode, TblPrducts.ProductName, TblPrducts.ProductPrice, TblPrducts.Inventory, TBLPrducts.id, TblPrducts.Mancode, TblPrducts.LongDesc, TblPrducts.ProductManufacturer, TblPrducts.RetailPrice, TblPrducts.Image, BibleInfo.Translation1 FROM BibleInfo RIGHT JOIN TblPrducts ON BibleInfo.ProductCode = TblPrducts.ProductCode WHERE (((TblPrducts.ManCode)='Bibles')) AND TblPrducts.ProductCategory = 'BIBLE SOFTWARE' Order By -TBLPrducts.id


Reply With Quote

Just chill
Bookmarks