troubleshooting Question

MS Access returns different results each time

Avatar of Mezczyzna
MezczyznaFlag for Canada asked on
DatabasesMicrosoft AccessMicrosoft SQL Server
6 Comments1 Solution78 ViewsLast Modified:
Hello,
I am puzzled.
This query:

SELECT DISTINCTROW Last(dbo_INVENTORY_TRANS.TRANSACTION_DATE) AS LastOfTRANSACTION_DATE, dbo_INVENTORY_TRANS.PART_ID
FROM dbo_INVENTORY_TRANS
GROUP BY dbo_INVENTORY_TRANS.PART_ID
HAVING (((Last(dbo_INVENTORY_TRANS.TRANSACTION_DATE))>#12/31/2012#) AND ((dbo_INVENTORY_TRANS.PART_ID) Is Not Null))
ORDER BY Last(dbo_INVENTORY_TRANS.TRANSACTION_DATE) DESC , dbo_INVENTORY_TRANS.PART_ID;

gives me different results each time I click Run.
The database is linked using ODBC to our ERP database. Nobody is logged in to the ERP, so no transactions are going on.
Difference between each time can come to almost thousand records.

What am I doing wrong?

Microsoft Access 2013. SQL Server 2007.
ASKER CERTIFIED SOLUTION
Anders Ebro (Microsoft MVP)
Microsoft Developer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros