i have a combo box that enables the user to quickly select time frames. at the minute i have 1 week, 2 weeks, 1 month, 3 months, 6 months, 1 year and All. i would like to add to this list
last week
last year
this year
this week
i dont really know how to tell access to do this. at the minute i have set property. on selection of the combo box i have macros that set the property of txtDateFrom and txtDateTo eg
AfterUpdate: If comboDateSelection="1 Week" then
SetProperty: Item: txtDateFrom
Expression: DateAdd(("ww",-1,Date())
SetProperty Item: txtDateTo
Expression: Date()
as you can probably tell i have done this in a macro so i would like to keep it that way.
is it possible?
last week
last year
this year
this week
i dont really know how to tell access to do this. at the minute i have set property. on selection of the combo box i have macros that set the property of txtDateFrom and txtDateTo eg
AfterUpdate: If comboDateSelection="1 Week" then
SetProperty: Item: txtDateFrom
Expression: DateAdd(("ww",-1,Date())
SetProperty Item: txtDateTo
Expression: Date()
as you can probably tell i have done this in a macro so i would like to keep it that way.
is it possible?