Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Getting data for a rolling 12 months from SQL database into Excel

I can get the data from my SQL database (a call tracking system) for the last
year by setting 'create date' 03/02/2008.

I would like to get this for a rolling 12 months, so I don't have to update
my query each time, but rather just refresh it. Is this even possible?

Thanks in advance,
Maggie
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 915
Default Getting data for a rolling 12 months from SQL database into Excel

maggiethomas wrote:
I can get the data from my SQL database (a call tracking system) for the last
year by setting 'create date' 03/02/2008.

I would like to get this for a rolling 12 months, so I don't have to update
my query each time, but rather just refresh it. Is this even possible?

Thanks in advance,


Hi Maggie

Are you using MSQuery? You might be able to set up a parameter query
that gets the parm from a cell in your spreadsheet. I've done this
successfully with MSQ and Access, but do not have SQL to test the
procedure. Take a look at this:

http://www.dicks-clicks.com/excel/ExternalData6.htm

Or Google _ms query parameter_.
Reply
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
How do I calculate FMLA hours used in the last rolling 12 months Linda432 Excel Discussion (Misc queries) 2 June 10th 08 08:55 PM
I need help with a formula for rolling twelve months QD Excel Discussion (Misc queries) 0 January 1st 08 10:43 PM
ROLLING 12 MONTHS PLEASE HELP ME!!!!! Need Help Excel Discussion (Misc queries) 1 September 21st 06 03:28 PM
rolling 12 months D Excel Worksheet Functions 4 August 31st 05 10:24 AM
rolling months tjkyon Excel Discussion (Misc queries) 2 January 20th 05 05:39 PM


All times are GMT +1. The time now is 09:48 AM.

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

About Us

"It's about Microsoft Excel"