msix Posted July 18, 2008 Posted July 18, 2008 Customers scan their bar code when coming into the club. The scanner records their bar code ID, also their member ID, and creates a new record that records the member ID and the current date. How do I find all of the members that attended for the week, where my weekday starts on a Monday and ends on a Saturday? 1. I need to list each member name & member ID & the date attended 2. I need to tally up the total # of members attended each day as well as for the entire week. Thanks.
comment Posted July 18, 2008 Posted July 18, 2008 How do I find all of the members that attended for the week Which week is "the week"?
LaRetta Posted July 18, 2008 Posted July 18, 2008 I would assume if they fell within the date attended. Calculation something like: DateAttended - DayOfWeek ( DateAttended + 1 ) then group by this calculation in sub-summary report.
msix Posted July 18, 2008 Author Posted July 18, 2008 If Monday thru Saturday is my week (I'm not open on Sundays), and say today is Friday, I'd want to see all of the attendees from Monday thru today (Friday). I also run a daily report, but I like to see the progression as the attendance builds through the week. Does that help?
comment Posted July 18, 2008 Posted July 18, 2008 This script will find records of the current week (week starting on Monday) Enter Find Mode[] Set Field [ Datefield ; Let ( [ today = Get (CurrentDate) ; mon = today - DayOfWeek ( today - 1 ) + 1 ] ; mon & ".." & mon + 6 ) ] Perform Find[] To get the daily/weekly counts, create a report with a sub-summary by Datefield part and a grand summary part, and place a summary field defined as Count of in both parts.
msix Posted July 19, 2008 Author Posted July 19, 2008 I'm missing something here. Is DateField a new field I need to define? Is it a date or a calculation field if so. I tried the script and it's asking for a contstant.
comment Posted July 19, 2008 Posted July 19, 2008 Datefield is the name I used to indicate your existing date field - where the date of entry is recorded.
Recommended Posts
This topic is 5971 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now