Hello Stephen and welcome to the forum. It's great to have you involved in the Approved Workman Database project and sharing your advanced SQL knowledge. I often learn new things when highly skilled technical folks like you get involved. As a result, we all benefit from the new ideas and solutions we work together on!
After seeing your posting I did a little testing and confirmed that you have indeed found a bug. Sorry. The Administration.Current_Club_Date field value is not getting updated when the user changes the Current Club Date value from the main toolbar's drop down list. I have logged this defect and it will be fixed in the next release going out this summer before the new club year starts. By the way, the current version is 4.3.3.6 so I encourage you to log into AWdb and click Help > Check for updates. If you happen to be using a trial version presently, please send an email to support@approvedworkman.com and I'll send you the 4.3.3.6 update.
Alternative / Workaround:
For now... if you want to use the SQL statement you've shared below, try just referencing a specific date and ignore Administration.Current_Club_Date. For example, try the following changes:
in line 2 change:
A.Current_Club_Date AS "Club Date",
to
PS.Session_Date AS "Club_Date",
and in the Where clause change:
and PS.Session_Date = A.Current_Club_Date
to:
and PS.Session_Date = '2010-10-6'
(Note: I used an example of Oct 6, 2010 as the date and of course you'll need to modify this to get the correct club date according to your needs. When specifying dates in AWdb SQL statements, just know that hard-coded dates have to be in single quotes using a format of YYYY-MM-DD.)
Future consideration:
I know that AWdb uses the term "points" where it appears your club prefers "bucks'. However, if you make the mental substitution and just swap points for bucks... you won't even have to run any SQL because the system will keep track of all of the "bucks/points" for you, it will do all the math and you can see the bucks/point values on screen and on various reports and even use the Tools > Club Store screen to spend the bucks/points.
If you go to Admin > Club Setup > Club Names, Logos, Dues and Points you will see that you can enter the exact amount of points that clubbers receive for each of the usual "Check-in" categories (Attendance, Uniform, Bible, Handbook, Bonus, Visitors, etc. (note the Custom1 or Custom2 field can be renamed "OnTime" if you want to track that))
Points for completing handbook sections are set up under Admin > Curriculum. Once there click the "Set Point Values" button in the Curriculum tool bar.
After having changed any point value settings under Admin, to make sure that all of the points/bucks are recalculated to reflect the new values go to the main Tools menu and select "Recalculate Total Points".
To view a clubber's net Points/Bucks, you can look at the main Clubbers List grid and examine the Net Points column. Remember you'll need to turn Calculations "On" in the toolbar.
On the Check-in List grid, the "Points" aka "Bucks" column shows the points earned for the current club week, however you can make visible another column that will show a clubber's "Net" points too. (Use the tiny button in the upper left corner of the grid next to the Last Name header to get a drop down check list of all available columns.)
Try running the Achievement Report (under the Reports tab) and experiment with the various options and you can probaly get a report output to meet your needs. The Point List and Worksheet may be helpful too if you're preparing for Store Night.
If none of the existing reports can give you exactly what you're looking for, please do share more about your needs and we can likley add a new report in the future so you won't have to resort to using the SQL Workbench. (Though it IS pretty handy to be able to do stuff like this, especially if you use the results grid's Filtering, Sorting, Grouping, Printing and Exporting features.)