Quantcast
Channel: Access for Developers forum
Viewing all articles
Browse latest Browse all 14673

date parameter syntax in VBA/Access

$
0
0

Hello!

I try to populate different columns of a table from different queries, and I get the same result for the following two queries, why is that ?

Set rs1= db.OpenRecordset("SELECT table.deebet, sum([table].eSumma) as SumOfEsumma FROM [table] WHERE [date] < #" & startdate& "#  GROUP BY päevaraamat.Deebet;", DB_OPEN_DYNASET)

Set rs2= db.OpenRecordset("SELECT table.deebet, sum([table].eSumma) as SumOfEsumma3 FROM [table] WHERE ((([table].date) between #" & startdate& "# and #" & enddate& "#) GROUP BY table.Deebet);", DB_OPEN_DYNASET)

Thank you in advance,


Viewing all articles
Browse latest Browse all 14673

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>