Results 1 to 2 of 2
  1. #1
    mbc321 is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    1

    Add data from previous record if blank

    I have a table with "Date" and "Rate" fields. Not every record contains a value in the "Rate" field. is there a query that would insert the value from previous record in case the "Rate" field is null?
    The sample table looks like this:

    Date;Rate
    20070101;100
    20070102;
    20070103;
    20070104;200
    20070105;205
    20070106;206
    20070107;


    20070108;195

    The result schould look like this:

    Date;Rate
    20070101;100
    20070102;100
    20070103;100
    20070104;200
    20070105;205
    20070106;206
    20070107;206
    20070108;195

    pls i need used Query
    Thank you

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I don't think you can do it with a query but you can fill in the table if you walk through the RecordSet.

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

Similar Threads

  1. Populate date from previous record
    By Lianes in forum Access
    Replies: 3
    Last Post: 09-19-2009, 03:42 PM
  2. Replies: 1
    Last Post: 03-15-2009, 04:46 PM
  3. using value from previous record
    By dollars in forum Queries
    Replies: 0
    Last Post: 12-10-2008, 03:30 PM
  4. Replies: 3
    Last Post: 10-23-2008, 08:43 AM
  5. Replies: 1
    Last Post: 09-05-2008, 12:07 PM

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