When developing an expression I do one of two things. Either I have a report
with a single textbox that I assign the expression to so I can see the
result or I have a little vb.net app that I use to test the vb.net code.
That being said, I quickly did this and it worked no problem.
Do this.
1. create new report (blank, nothing on it).
2. add a parameter of type int
3. set the Default values non-queried to this
=Month(now())
No quotes put exactly the above
4. Preview
--
Bruce Loehle-Conger
MVP SQL Server Reporting Services
[quoted text, click to view] "michelk" <michelk@removethis.infosupprt.com> wrote in message
news:ewt%23wdRpGHA.4848@TK2MSFTNGP03.phx.gbl...
> Thanks for responding.
>
> I did it all. All possible combinations . Without luck. ;-)
> The only thing i'm getting is a grayedout input box. ??? The report with
> data is working ok. Even when I create a new parameter (int) with this
> formula it's still grayed out ????
> If this is the beginning of using SQL reporting service then I'm staying
> at crystal reports ... (even when I don't want that to..)
>
> can someone send me a RDL that works ?
>
>
> "Perry" <sjaak@sjaak.net> wrote in message
> news:Os5y2lCpGHA.4812@TK2MSFTNGP04.phx.gbl...
>> Michel,
>>
>> Can you try
>> =Month(Now())
>>
>> Instead of what you are using currently. This is what I always use for
>> getting the monthnumber and never gave me a hard time.
>>
>> grtz
>>
>> Perry
>>
>>
>>
>> "michelk" <michelk@removethis.infosupprt.com> wrote in message
>> news:ej6wEb$oGHA.516@TK2MSFTNGP05.phx.gbl...
>>
>>> Hai ,
>>>
>>> Can anybody say it's not me ?
>>>
>>> tried it in VS2003 and VS2005 but can't get it working. It seems easy
>>> ...
>>> I have created a report with a sql stored procedure as dataset. Droped a
>>> table on the report. Run the report . See the data. OK.
>>> But one of the report parameters is the month (as int) So i what to set
>>> a default value for this parameter. I type in the "default values" in
>>> "non-queried" the following formula "=Month(Today)". The formula
>>> compiler says it's OK. But when i run the report I'm seeing Nothing!!!
>>> What I'm missing here.???
>>> Spend 1hour trying.. please help. Is this a bug?
>>>
>>> michel
>>>
>>>
>>>
>>>
>>
>>
>
>