Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Reporting Services Development
 setting default date to yesterday

Author  Topic 

Tart_SQL
Starting Member

41 Posts

Posted - 2008-08-06 : 23:24:14
I need to set my report parameter @date to the default of yesterday's date whenever the report is run. Is there a VB.Net formular that I can use? That is something in this format '=CDate(Now) - 1' as the default date.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-08-07 : 02:56:49
just use =dateadd("d",-1,Now())
Go to Top of Page
   

- Advertisement -