dtfrancis15
IS-IT--Management
I pass the variable "Months" from page 1 to 2, and then using the following set dtDate as today and dtThen as the date 3, 6, 12 or 18 months prior as set by Months.
How do I set this as a useable variable for the following reports?? How do I use "Months" in place of -2 in the formula.
Dim dtDate, strDate
dtDate = Now()
strDate = Year(dtDate) & Right("00" & Month(dtDate), 2) & Right("00" & Day(dtDate), 2)
dim dtThen
dtThen = Now()
Response.Write DateAdd("m", -"3", dtNow)
How do I set this as a useable variable for the following reports?? How do I use "Months" in place of -2 in the formula.
Dim dtDate, strDate
dtDate = Now()
strDate = Year(dtDate) & Right("00" & Month(dtDate), 2) & Right("00" & Day(dtDate), 2)
dim dtThen
dtThen = Now()
Response.Write DateAdd("m", -"3", dtNow)