KevinSlater
Registered User.
- Local time
- Today, 16:49
- Joined
- Aug 5, 2005
- Messages
- 249
Hi,
I have an access query that looks at a table named DATA-COMPLAINTS which has complaints data. One of the fields on the DATA-COMPLAINTS table is named: CC_ENTRY_DATE which is the date each complaint record was entered in the format mm/dd/yy
What I would like to be able to do is prompt the user to enter a year, and then prompt the user to enter a week number (from 1 to 53). The results would then show all complaints data that falls within the year/week they enter.
I have a linked SQL table named dbo_@CALENDER which has data about our accounting calendar such as quarters, periods, weeks, week start date, week end date and number of working days in the week. I was thinking I could make use of this table to compare the complaints entry date (CC_ENTRY_DATE) with the week/year the user enters. See attached screenshot of this table
I guess I need some SQL code to achieve? this but not sure where to start, any help would be great.
I have an access query that looks at a table named DATA-COMPLAINTS which has complaints data. One of the fields on the DATA-COMPLAINTS table is named: CC_ENTRY_DATE which is the date each complaint record was entered in the format mm/dd/yy
What I would like to be able to do is prompt the user to enter a year, and then prompt the user to enter a week number (from 1 to 53). The results would then show all complaints data that falls within the year/week they enter.
I have a linked SQL table named dbo_@CALENDER which has data about our accounting calendar such as quarters, periods, weeks, week start date, week end date and number of working days in the week. I was thinking I could make use of this table to compare the complaints entry date (CC_ENTRY_DATE) with the week/year the user enters. See attached screenshot of this table
I guess I need some SQL code to achieve? this but not sure where to start, any help would be great.
Attachments
Last edited: