4

Matching records using a date range

Posted by Juan Soto on October 10, 2011 in Access Help, Access Queries |

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 [...]

0

Code to help you debug SQL code – POPQuery

Posted by Juan Soto on October 22, 2010 in Access Help, Access Queries |

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 [...]

0

Criteria for the current month in a query

Posted by Juan Soto on November 6, 2009 in Access Queries |

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/” [...]

Copyright © 1969-2012 Microsoft Access with SQL Server Blog All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.0.2, from BuyNowShop.com.