Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Repent34

    Help creating DSum formula

    I thought it might be easier to provide you a copy of my DB so you can see what I have going on. I'm a noobie so I'm sure that things are not as optimized as they could be. When you open the DB the main form will open up. On the left side is where the operator enters in their records. The...
  2. Repent34

    Help creating DSum formula

    Can I even use DSum with two tables? The part number is in tblProductList and the rest of the data is in tblProductionNumbers.
  3. Repent34

    Help creating DSum formula

    bump to the top for help
  4. Repent34

    Help creating DSum formula

    Would your formula give an actual number or an average? Just asking because of the "DCount" keyword. I already have it doing averages on my chart but want an actual number. The code I'm using for averages is: SELECT [Part Number],Avg(([Waste%])) AS [-Waste%] FROM...
  5. Repent34

    Help creating DSum formula

    hit submit before finishing my thought. said it couldn't find the table for tblProductList. "Part Number" resides in a table called "ProductList"
  6. Repent34

    Help creating DSum formula

    I think part of the problem is that the field for "Part Number resides in a different table called "tblProductList" and not in the table for tblProductionNumbers. I tried the code below (and several other iterations) to allow for the different table. Actual Waste%: DSum(" [LF Run]-[LF...
  7. Repent34

    Help creating DSum formula

    This is the whole code in the query: Actual Waste%: DSum(" [LF Run]-[LF Produced]","tblProductionNumbers","Part Number='HOC'")/DCount("*","tblProductionNumbers","Part Number='HOC'") I still get the error and when I acknowldege it I get a dialog box that says "unknown"
  8. Repent34

    Help creating DSum formula

    I modified this code a little bit. A product they are running right now is called "HOC" instead of "LL100". Instead of "Product" as the table field it is actually "Part Number" (sorry). I am getting an error of "Syntax error (missing operator) in query expression 'Part Number=HOC'.
  9. Repent34

    Help creating DSum formula

    Thank you for the reply PWise. How would you code this so that the "LL100" could be any product? We produce about 20 products and the query could be any of those, just depends on what they are producing that day.
  10. Repent34

    Help creating DSum formula

    I am trying to create a DSum formula (to use as a control source in a chart) in a query that will look at a particular set of records(based on a product type), and take the value of that record's waste number (a calculated number) and divide that by the value of that record's LF Run number...
  11. Repent34

    Find Prior Month Sales Per Salesman

    I have salesmen throughout the country. Each salesman sells in a particular state. I want to total up each salesman's invoice sales for the prior month (I will also do this for: July 2010, %Difference between July 2011/July2010, YTD 2010, YTD2011, and percent difference between YTD2010 and...
  12. Repent34

    Need To Create Box That Shows Previous Month Label And Amount Of Sales

    Thank you Hilfy for taking the time to help me. This is very helpful.
  13. Repent34

    Need To Create Box That Shows Previous Month Label And Amount Of Sales

    I am using CR2008 I am creating a report for our salesmen and one of the fields in the report will be a text box that shows what the last month was. For instance, if the report is run this month, the report will plug July 2011 into the box because that was what last month was. Tied to this will...

Part and Inventory Search

Back
Top