troubleshooting Question

No results from query

Avatar of Fritz Paul
Fritz PaulFlag for South Africa asked on
Microsoft AccessSQL
11 Comments1 Solution421 ViewsLast Modified:
I have a Table with four fields, ID (Long Integer), AccName (text), Datum (Long Integer), Balance.
I want a select query, "Query1" which will give me the last balance before a given date.
I get no results.
My SQL statement :
SELECT Combined.AccName, Last(Combined.Datum) AS LastOfDatum, Last(Combined.Balance) AS LastOfBalance
FROM Combined
GROUP BY Combined.AccName
HAVING (((Last(Combined.Datum))<20100301))
ORDER BY Last(Combined.Datum);
What is wrong?
I attach database.
LastBalance.accdb
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 11 Comments.
Join the Community
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 11 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