I have a special module called constants where i keep my different Date Constants as :
Public Const strInvoiceDate As String = “And ((orders.invoicedate) > #1/1/2001#)”
Public Const strInvoiceDate2 As String = “AND ((Orders.invoicedate)>#1/1/2001#))”
Public Const strInvoiceDate3 As String = ” WHERE (((Orders.invoicedate) > #1/1/2000#))”
Public Const strYear As String = ” WHERE (((Year([InvoiceDate]))=2001)” ‘ to be found in the report Products Annual
Public Const strOrderDate = ” AND ((orders.orderdate)>#1/1/2001#))”
So each year i change the date for example > #1/1/2002#
Is there another way of doing it,to change the year only once for all the constants for my database?
I have tried with Dim Mydate = > #1/1/2001# but i coulnd make the constant or the variable
I will be grateful for any help