Hi,
I am creating a Make Query to retrieve specific data and categorize a date into Month, Quarter, Year to be used for other reports. I am using a form to identify the year and ThruMonth of the data needed.
Tables in Make Query: Summary Master, Direct Time Master
Fields In Make Query: JobComponent, DepartmentTeam, Year: DatePart("yyyy",[Date]), Quarter:DatePart("q",[Date]), Month:DatePart("m",[Date]), Hours, Product Code
The data in the database is current with transaction through today, however, there are reports we run that would require data thru a particular month. For example, we have data through December but working on reports thru October. So in my form for Year we would have 2018 and for ThruMonth we would have 10.
When I have [Forms]![MainMenu]![txtYear] in the criteria under Year. It works correctly and pulls all 2018 hours
When I added <=[Forms]![MainMenu]![txtThruMonth ]to the criteria under Month. It does not work. I get nothing.
Any help that can be provided would be greatly appreciated. I can't seem to find anything on-line like this. Would it be better to pull the actual date into the table and use a combined criteria? I don't know what that would be but it makes sense.
Ellen
I am creating a Make Query to retrieve specific data and categorize a date into Month, Quarter, Year to be used for other reports. I am using a form to identify the year and ThruMonth of the data needed.
Tables in Make Query: Summary Master, Direct Time Master
Fields In Make Query: JobComponent, DepartmentTeam, Year: DatePart("yyyy",[Date]), Quarter:DatePart("q",[Date]), Month:DatePart("m",[Date]), Hours, Product Code
The data in the database is current with transaction through today, however, there are reports we run that would require data thru a particular month. For example, we have data through December but working on reports thru October. So in my form for Year we would have 2018 and for ThruMonth we would have 10.
When I have [Forms]![MainMenu]![txtYear] in the criteria under Year. It works correctly and pulls all 2018 hours
When I added <=[Forms]![MainMenu]![txtThruMonth ]to the criteria under Month. It does not work. I get nothing.
Any help that can be provided would be greatly appreciated. I can't seem to find anything on-line like this. Would it be better to pull the actual date into the table and use a combined criteria? I don't know what that would be but it makes sense.
Ellen