LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Filling Database Query

I have a database Query that generates information as follows:

Date, Day of the Week, Hour Day, Value1, Value2


The problem is that since it's a database query, if there's n
inforamtion for a particular hour of the day, it just skips over tha
hour.

Like so:

8/3/2004, 3, 2, 100, 700
8/3/2004, 3, 3, 150, 845
8/3/2004, 3, 4, 231, 101
8/3/2004, 3, 6, 171, 842

What I need is a macro to cycle through and fill in places where ther
is no data.. so the above would turn in to:

8/3/2004, 3, 2, 100, 700
8/3/2004, 3, 3, 150, 845
8/3/2004, 3, 4, 231, 101
8/3/2004, 3, 5, 0, 0
8/3/2004, 3, 6, 171, 842

This is also for multiple days, so at midnight it goes from
8/3/2004, 3, 23, 104, 543

to

8/4/2004, 3, 0, 78, 163

Any pointers on how to get started

--
Message posted from http://www.ExcelForum.com

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Import New Database Query (Union Query) in Spreadsheet klock Excel Discussion (Misc queries) 2 September 24th 09 01:30 AM
database query not showing foxpro database How I import data mangat New Users to Excel 1 June 24th 07 03:31 PM
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? jocke Excel Discussion (Misc queries) 1 November 29th 05 01:44 PM
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? jocke Excel Discussion (Misc queries) 0 November 28th 05 06:37 PM
How to use a Access Query that as a parameter into Excel database query Karen Middleton Excel Discussion (Misc queries) 1 December 13th 04 07:54 PM


All times are GMT +1. The time now is 05:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"