Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6322319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:18:29+00:00 2026-05-24T16:18:29+00:00

PARAMETERS [First Date] DateTime, [Second Date] DateTime, [Shift] Text ( 255 ); SELECT Main.[Mth/day],

  • 0
PARAMETERS [First Date] DateTime, [Second Date] DateTime, [Shift] Text ( 255 );
SELECT
    Main.[Mth/day],
    Main.Shift,
    ([Run Hrs]*[Actual Lbs/hr]) AS [Gross Production - LBS],
    [Scrap Lbs 1]+[Scrap Lbs 2]+[Scrap Lbs 3] AS [Scrap Produced - LBS],
    [Run Hrs]*[Actual Lbs/hr]-([Scrap Lbs 1]+[Scrap Lbs 2]+[Scrap Lbs 3]) AS [Net Production],
    [Run Hrs]*[Actual Lbs/hr]*0.035 AS [Scrap Target],
    [Run Hrs]*[Std lbs/hr]-([Run Hrs]*[Actual Lbs/hr])*0.035 AS [Target Net Production],
    [Run Hrs]*[Std lbs/hr] AS [Target Gross Production],
    (([Run Hrs]*[Std Lbs/hr])/([Run Hrs]*[Actual Lbs/hr]*0.035)) AS [Target Scrap Rate]
FROM Main
WHERE
    (((Main.[Mth/day]) Between [First Date] And [Second Date]
    And [Shift]=Main.Shift
    And [Std lbs/hr]>0));

I need to also sum each calculated field so they can also retrieve monthly summaries and the like. Can i do this in the same query or am I best to make another query based off of this one’s results?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T16:18:30+00:00Added an answer on May 24, 2026 at 4:18 pm

    This is really something that should be handled in the front-end or report writer, not through SQL.

    In MS Access 2007 the following should work:

    1. Open your report in layout view
    2. Click on one of the cells in the column that you want to total
    3. On the Format tab click on Totals and select Sum

    A cell should be added to the report footer with your aggregate.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Below are two ways of reading in the commandline parameters. The first is the
I'm trying to pass a null value for the first parameter in the code
First of all, I know about the command line parameter, but I don't want
Parameters are used to protect you from malicious user input. But if the parameter
Query parameters : http://example.com/apples?order=random&color=blue Matrix parameters : http://example.com/apples;order=random;color=blue When should one use query parameters
Why are 'out' parameters in .NET a bad idea? I was recently asked this,
Many of the parameters for interacting with the Office Object model in VSTO require
Routines can have parameters, that's no news. You can define as many parameters as
Can Eclipse make parameters for generated methods (overwriting, implementing interface, etc.) final, and if
I have to pass parameters between two rails apps. In one side (sender) I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.