Results 1 to 2 of 2
  1. #1
    Lucas83 is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2010
    Posts
    6

    Conversion in Access table

    Hi everyone,

    I'm new here and I'm a beginner with Access. I hope anyone can help me, because I'm a little short of time. I have a table in Access. The data in this table is about a weather station. I have a few columns, first colum is date and the format is like this: 17/02/2009 0:31:00. Second column is temperature, third column is precipitation, and so on. The data is registred every minute therefore I have as rows as minutes has a day:

    17/02/2009 0:31:00
    17/02/2009 0:32:00
    17/02/2009 0:33:00
    ...



    What I need is to convert data from minutes to hour, I mean, to get 60 rows (since an hour has 60 minutes) and get the mean for temperature and mean for precipitation for those 60 rows. I was thinking about using a counter to get 60 rows and calculate what I need but I still don't know how to carry it out in Access. I would be very grateful if anyone could help me, giving me any clue to get what I need. Thanks in advance!!

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Try a query like this:

    SELECT Format([DateFieldName],"yyyymmdd hh") AS DayHour, Avg(RainField) AS AverageRain
    FROM TableName
    GROUP BY Format([DateFieldName],"yyyymmdd hh");
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. ODBC table read to blank Access table write
    By dibblejon in forum Access
    Replies: 2
    Last Post: 03-10-2010, 08:39 AM
  2. Replies: 2
    Last Post: 10-27-2009, 07:09 AM
  3. Conversion from Excel to Access
    By TMG in forum Import/Export Data
    Replies: 1
    Last Post: 10-20-2009, 12:48 PM
  4. Conversion of database to text format.Help!!
    By sasipulikkal in forum Import/Export Data
    Replies: 3
    Last Post: 09-28-2009, 01:38 AM
  5. Access VBA - date format conversion
    By benattal in forum Programming
    Replies: 3
    Last Post: 12-22-2008, 10:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums