KevinSlater
Registered User.
- Local time
- Today, 23:47
- Joined
- Aug 5, 2005
- Messages
- 249
Hello, please could anyone tell me if is it possible to have a combo box in a form that displays just the last 7 days? (from whatever today’s current day is) I need to be able to store this date that the user selects in a query/table
(Currently I have a field named SHIFT_DATE that the user enters a date into this field, this field is bound/linked to a query)
Ie a drop down list showing the dates like this:
15/02/2006
14/02/2006
13/02/2006
12/02/2006
& so on……
ive used the following code in a query before to display records from just the last 7 days
>=DateAdd("d",-7,Date())
I thought maybe I could do something similar in a combo box but I’ve had no luck so far :-( any suggestions would be excellent. Thanks.
(Currently I have a field named SHIFT_DATE that the user enters a date into this field, this field is bound/linked to a query)
Ie a drop down list showing the dates like this:
15/02/2006
14/02/2006
13/02/2006
12/02/2006
& so on……
ive used the following code in a query before to display records from just the last 7 days
>=DateAdd("d",-7,Date())
I thought maybe I could do something similar in a combo box but I’ve had no luck so far :-( any suggestions would be excellent. Thanks.
Last edited: