![]() | |
#11
| |||
| |||
|
|
I think you could have presented a row column example or two to help illustrate your issue. *I'll even show you what I mean FieldName * Value *Baseline... 01/2011 * * * * *10 * * * 11 *Consecutive 10/2010 * * * * * *5 * * * 11 *Consecutive 07/2010 * * * * *30 * * * 11 *Not |
#12
| |||
| |||
|
|
I think you could have presented a row column example or two to help illustrate your issue. *I'll even show you what I mean FieldName * Value *Baseline... 01/2011 * * * * *10 * * * 11 *Consecutive 10/2010 * * * * * *5 * * * 11 *Consecutive 07/2010 * * * * *30 * * * 11 *Not This is pretty close. I have the function already, but it is just a manually created SQL string. *Since the user might want to see as few as 2 consecutive quarters, or as many as 8 consecutive quarters, I have manually created the SQL strings for each possibility. I was hoping with a for/next loop, the function could see how many quarters the user wants to see (passed in as a variable), and then loop through the possibilities, building the SQL string on the fly ((1 and 2) or (2 and 3)). *This way I would have to maintain a lot less code in the event of requirements changes. |
![]() |
| Thread Tools | |
| Display Modes | |
| |