Results 1 to 2 of 2
  1. #1
    Wombat is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2012
    Posts
    33

    Query results that includes rows for missing data points

    I am trying to build a tool that creates financial graphs. I will have a "PriceTime" table with fields <Price> and <PTime>, this field contains second-by-second prices. Another table will be "EventTime" and have an Event and an <Etime> field.



    My problem is that for the graphs, if a second is missing, I want a blank record for that second so that my graph doesn't look like it had a drastic change when really there are just data points missing.

    Is it possible to do something where the query says:

    For each second in X time range (for example, + 10 minutes and - 10 minutes of an event time)
    Select Time, price
    and if there is no record for that second, give me the Time and a Null in the price?


    I hope this was clear.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,623
    Why would a second be missing? Cannot display data that doesn't exist. Query cannot create the record. You can use VBA code to loop through a recordset of the data and determine if a second is missing and if it is, insert a record in table with that time.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Annoying error on macro export to excel - missing rows
    By Blueweasel in forum Import/Export Data
    Replies: 0
    Last Post: 12-15-2011, 04:41 AM
  2. plot points for missing periods of time
    By ajetrumpet in forum Reports
    Replies: 0
    Last Post: 09-13-2010, 05:34 PM
  3. Subtract Rows in Query Results
    By Sengenbe in forum Queries
    Replies: 5
    Last Post: 02-08-2010, 06:05 PM
  4. Missing Counts that = 0 in query results
    By dandhjohn in forum Queries
    Replies: 1
    Last Post: 01-29-2010, 11:28 AM
  5. Replies: 0
    Last Post: 11-16-2008, 09:46 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