Matching records using a date range
The other day I asked Ben to help me with a thorny problem, I needed to match records in one table with records in another table using a date range. Here’s the table I needed to update, called tblWidgets: WidgetID DateProduced WidgetWeekID ——- ———— —- 1 1/2/11 2 1/16/11 3 1/31/11 WidgetWeekID comes from another [...]
Code to help you debug SQL code – POPQuery
I use SQL in my code a lot, I’m not a fan of creating queries and then referencing them in my code since users may delete or change them. Often I build SQL strings and then I need to debug them in the query Access grid, in the past I would get the value of my [...]
Criteria for the current month in a query
The other day I needed to create a query where it returns all records with dates for the current month. I did not want to hard code the beginning and ending dates in the query, so I came up with the following line of code you can paste into your query: Between CDate(Month(Date()) & “/1/” [...]



