Search results

  1. T

    Max Forecast Date per Settlement Date

    This returns the first set of data as per the example. SELECT PUBLIC_RTU_RETAIL_UNIT.RETAIL_UNIQUE_ID, IIf([Settlement_date]=[forecast_date],"WD",DateDiff("d",[settlement_date],[forecast_date])) AS LmDay, PUBLIC_FSH_SETTLEMENT_HISTORY.SETTLEMENT_DATE AS SettDate...
  2. T

    Max Forecast Date per Settlement Date

    Thanks for the reply Brian. The query still only returns the max date for the range of settlement days. This is only a problem when I have two forecasts for a given day i.e. 02/07/08 31/07/08 + Timestamp 02/07/08 01/08/08 + Timestamp 02/07/08 01/08/08 + Timestamp 02/07/08 02/07/08 +...
  3. T

    Max Forecast Date per Settlement Date

    That's what it returns. I removed the max as it only returns one date.
  4. T

    Max Forecast Date per Settlement Date

    Sample data
  5. T

    Max Forecast Date per Settlement Date

    Haha, touche. That is ofc what I meant. SELECT PUBLIC_RTU_RETAIL_UNIT.RETAIL_UNIQUE_ID, IIf([Settlement_date]=[forecast_date],"WD",DateDiff("d",[settlement_date],[forecast_date])) AS LmDay, PUBLIC_FSH_SETTLEMENT_HISTORY.SETTLEMENT_DATE AS SettDate, Format([FORECAST_DATE],"dd/mm/yyyy") AS...
  6. T

    Max Forecast Date per Settlement Date

    Hi guys, Potentially an easy one! I have a select query as follows: SettDate ForcastDate 02/07/08 31/07/08 + Timestamp 02/07/08 01/08/08 + Timestamp 02/07/08 01/08/08 + Timestamp 02/07/08 02/07/08 + Timestamp As we can see from the sample, there are two records for the 1st August. I...
  7. T

    Run-time error 13 Type Mismatch

    try removing the "set" in the line where you set the recordset to tbl1
  8. T

    filtering

    lol damn you nam!
  9. T

    filtering

    Just select the name and group by it?
  10. T

    Can MS access handle this many entries

    Which company is the check for? I only ask as I work at British Energy :)
  11. T

    Help with some SUMIF-type work

    Opps missed FldNumber off! Working now :) Sorry to bother you David.
  12. T

    Help with some SUMIF-type work

    wtf please see attached :)
  13. T

    Help with some SUMIF-type work

    Hi DC, I've hit an error with the sorting: This data set...
  14. T

    Help with some SUMIF-type work

    Hi DC, Just got the query working. Going to write the SUMIF part now. Thanks very much :) Much appreciated! I will def use this a lot in the future as transposing data is a very v ery common problem industry-wide.
  15. T

    Help with some SUMIF-type work

    Hi DC, I thought that was coming. I agree that for most industries this is not in fact normalised data. However, this is standard for the electricity industry in the UK - each period represents a half-hourly value. 3 of the major companies I've worked for operate this way, and National...
  16. T

    Help with some SUMIF-type work

    Hi guys, Hope you're all well. I have a set of data that has 48 periods per record with +ive and -ive values. I'd like to sum per settlement date across the range where each value is evaluated and summed if it is >0 in one column and <0 in t'other. The processed set of data would look...
  17. T

    virus on mdb

    Well do you have one at present?
  18. T

    how to compare current contents between two combo boxes?

    You'll have a value in the first one from selecting an option. Then select a second value in the second combo. I mena you seem to have something that'd work here: If Me.[v]SelectProg[/b].Column(8) <> Me.SelectAW.Column(0) if they're both combo boxes and you've selected the correct columns to...
  19. T

    how to compare current contents between two combo boxes?

    rovo, remember the first column starts with a 0 too!
  20. T

    how to compare current contents between two combo boxes?

    The AfterUpdate event of the second combo box
Back
Top Bottom