bluenoser337
Programmer
I'm reposting in this forum, as I think my other choice was wrong...and I'd like to explain more clearly... In Access 2000, I have a report where I group records of manufactured parts in the following way...LotNumber, Color, QC_Code, Length, Width, Depth. The report groups and sums all parts with the same values in all the above fields and that works fine, until I try getting data "since a certain date and time". In the report data "record source" I then have to add the date/time field to the SELECT...but I also have to add it to the "GROUP BY", and now the records are no longer grouped properly on the report. Instead of seeing...
10"x12"x14" Qty.2, I get...10"x12"x14" Qty.1 on the report twice. My exact code is [SELECT ProdTime, LotNumber, Color, QC, Length, Width, Depth FROM parts GROUP BY ProdTime, LotNumber, Color, QC, Length, Width, Depth]. How can I have the query look at the date but not use it in the grouping? Please note: The "since" date is feed to the report from VB6 in a DoCmd.OpenReport line [WhereCondition:="ProdTime > #" & starttime & "# "] Any assistance greatly appreciated!!!!
by date. DateTime is in the general date format. This works fine in my Access report. All records are grouped and counted properly. Now I need to query for a report for all records since a certain date AND time. The report no longer grouping properly, I believe because now I can't use the "int" in the query and that means every "DateTime" is different. How can I get around this? Working Query = SELECT Int(ProdTime) AS DateOnly, Color, Length, Width...GROUP BY Int(ProdTime), Color, Length, Width. Non Working Query = SELECT ProdTime, Color, Length, Width...GROUP BY ProdTime, Color, Length, Width. Many Thanks!!!!
10"x12"x14" Qty.2, I get...10"x12"x14" Qty.1 on the report twice. My exact code is [SELECT ProdTime, LotNumber, Color, QC, Length, Width, Depth FROM parts GROUP BY ProdTime, LotNumber, Color, QC, Length, Width, Depth]. How can I have the query look at the date but not use it in the grouping? Please note: The "since" date is feed to the report from VB6 in a DoCmd.OpenReport line [WhereCondition:="ProdTime > #" & starttime & "# "] Any assistance greatly appreciated!!!!
by date. DateTime is in the general date format. This works fine in my Access report. All records are grouped and counted properly. Now I need to query for a report for all records since a certain date AND time. The report no longer grouping properly, I believe because now I can't use the "int" in the query and that means every "DateTime" is different. How can I get around this? Working Query = SELECT Int(ProdTime) AS DateOnly, Color, Length, Width...GROUP BY Int(ProdTime), Color, Length, Width. Non Working Query = SELECT ProdTime, Color, Length, Width...GROUP BY ProdTime, Color, Length, Width. Many Thanks!!!!