This is a migrated thread and some comments may be shown as answers.

Initial date value

1 Answer 74 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Stefan Willebrand
Top achievements
Rank 1
Stefan Willebrand asked on 30 Jan 2009, 08:40 PM
I have a report where I have defined parameters and filters for handling start date and end date. For the start date I would like to user =Now().AddDate(-1) but I get an error when I write that. Is there any way to solve that?

1 Answer, 1 is accepted

Sort by
0
Stefan Willebrand
Top achievements
Rank 1
answered on 30 Jan 2009, 08:55 PM
I found how to add user functions

Public

Shared Property GetPrevDate() As DateTime

 

 

Get

 

 

Return DateTime.Now.Date

 

 

End Get

 

 

Set(ByVal value As DateTime)

 

 

End Set

 

 

End Property

So my issue is solved.

 

Tags
General Discussions
Asked by
Stefan Willebrand
Top achievements
Rank 1
Answers by
Stefan Willebrand
Top achievements
Rank 1
Share this question
or