Search results

  1. B

    Multi-Query Error?

    Got it working: SELECT [Influent Data - Monthly Summary Sheet].[SumOfTotal Flow (m3/day)]/1000 AS Expr2, ([Influent Data - Monthly Summary Sheet].[SumOfTotal Flow (m3/day)]/1000)/[Influent Data - Monthly Summary Sheet].[SumOfNumber of Samples] AS [Average Total Flow], Max([Influent Data].[Max...
  2. B

    Multi-Query Error?

    Bob - The Date/Time attribute is applied, but only the date is recorded (no time). So you're saying there is no way to salvage anything I've done with the above code?
  3. B

    Multi-Query Error?

    Correct, [The Date] is a field in each table that is auto-recorded when a new data entry is made. It is the Date/Time property and is in the form dd/mm/yyyy. Return Sludge shouldn't be in there and has been removed. There are prompts in the other queries, asking for the same time range (a...
  4. B

    Multi-Query Error?

    QBE grid to start, then manual edits. Here's the updated code: SELECT [Influent Data - Monthly Summary Sheet].[SumOfTotal Flow (m3/day)]/1000 AS [Total Flow], [R1 Data By Month].[Total Flow]/[Influent Data - Monthly Summary Sheet].[SumOfNumber of Samples] AS [Average Total Flow]...
  5. B

    Multi-Query Error?

    Hi All, Here is my code: SELECT [Influent Data - Monthly Summary Sheet].[SumOfTotal Flow (m3/day)]/1000 AS [Total Flow], ([Influent Data - Monthly Summary Sheet].[SumOfTotal Flow (m3/day)]/1000)/[Influent Data - Monthly Summary Sheet].[SumOfNumber of Samples] AS [Average Total Flow]...
  6. B

    Monthly Summary Problem

    You're a magician. Thanks so much for your help!
  7. B

    Monthly Summary Problem

    Now - I guess one more question - If I wanted to have a report that had the monthly summaries (using Taruz's function) for the year, how would I go about doing that? It would just prompt the user to enter the year and then all the monthly summaries (with the values summed) would appear.
  8. B

    Monthly Summary Problem

    Hi Taruz - That Worked perfectly!
  9. B

    Monthly Summary Problem

    Alright, here is a code snippet: SELECT [Aeration Data].[The Date], [Aeration Data].[30 Minute Settling Test], [Aeration Data].[MLSS (mg/L)], [Aeration Data].[MLVSS (mg/L)], [Aeration Data].[Ammonia In (mg/L)], [Aeration Data].[Ammonia Out (mg/L)], [Aeration Data].[Ortho-Phosphorus In (mg/L)]...
  10. B

    Monthly Summary Problem

    Hi All, I have a form setup where a person can enter data (5 fields) and the date autopopulates with code in the form (dd/mm/yyyy). What I need to be able to do is create a monthly summary and separate that by year. I know about the sum function, but without some way to normalize the dates...
  11. B

    Query Not Showing All Results

    I got it working... I took out the following from the code: (Departments.[Department Name] = [Absenteeism 2011].Department)
  12. B

    Query Not Showing All Results

    I was thinking of having the admins just copy and paste the table for the new year.. is there a better way to do it?
  13. B

    Query Not Showing All Results

    Hahaha, Not my system..
  14. B

    Query Not Showing All Results

    Hi All, SELECT DISTINCTROW Departments.Director, Sum([Absenteeism 2011].Sick1) AS Sick1, Sum([Absenteeism 2011].Sick2) AS Sick2, Sum([Absenteeism 2011].Sick3) AS Sick3, Sum([Absenteeism 2011].Sick4) AS Sick4, Sum([Absenteeism 2011].Sick5) AS Sick5, Sum([Absenteeism 2011].Sick6) AS Sick6...
  15. B

    Autofill Textbox based on Input

    Alright I think I've gotten something here, could you elaborate on how I could hook this up to the initial text box? SELECT Departments.[Department Name] FROM [Absenteeism 2011] AS [Absenteeism 2011_1], Departments INNER JOIN [Absenteeism 2011] ON Departments.[Department Name] = [Absenteeism...
  16. B

    Autofill Textbox based on Input

    @pbaldy - I'll give this a shot... looks like exactly what I need. @boblarson - I'm using a form to save information to a table, then running queries on it which require the autofilled information.
  17. B

    Autofill Textbox based on Input

    Hi, I'm trying to basically create something that when a 6 digit number is typed into the combo box, it will pull information from another table and auto populate the record in the database. IE: I type in 90210 and in another table, it says California and populates the form. Any advice on how...
  18. B

    Syntax Error?

    Bah! It was the numbers in quotes. Thanks a ton man! Have a great weekend!
  19. B

    Syntax Error?

    Alright, one number changed.. I'm still only getting 2 weeks and 6 weeks for numbers.. Any ideas? iif ([Number of Years in Service]<="3" AND [Number of Years in Service]>"1", "2 Weeks", iif ([Number of Years in Service]<="10" AND [Number of Years in Service]>"3", "3 Weeks", iif ([Number of...
  20. B

    Syntax Error?

    Alright, I'm getting some weird errors now: 33.29 gives me 2 weeks whereas 6.36 gives me 6 weeks. iif ([Number of Years in Service]<="3"&[Number of Years in Service]>"1", "2 Weeks", iif ([Number of Years in Service]<="10"&[Number of Years in Service]>"3", "3 Weeks", iif ([Number of Years in...
Back
Top Bottom