Hello Friends!
Need to create a select query to sum sales figures in between dates.
How can I do that?
Thanks.
Hello Friends!
Need to create a select query to sum sales figures in between dates.
How can I do that?
Thanks.
Assuming three fields in Table1: ID, Sales, SalesDate
Want all sales between 1/1/2016 and 1/4/2016
SELECT Table1.Sales, Table1.ID, Table1.SalesDate
FROM Table1
WHERE (((Table1.SalesDate) Between #1/1/2016# And #1/4/2016#));
If you want the total, then click on the Sigma in the ribbon after running the query.
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
Thank you so much.
I am not sure I told you but I am a novel to Access. Where do I put the line of code?
Thanks again
You will need to create a query. This is a SQL statement and not code. You will need to use this as a guide as your field names and tables may not be the same.
https://support.office.com/en-us/art...d-c29c276ee6b0
https://www.youtube.com/watch?v=QRQhBVF-6Ng
This is the SQL statement equivalent to building the query in the QBE
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks