G Guest Feb 5, 2005 #1 I have a field with dates (past & future) and I want a combo box that will show only the dates from the current date forward.
I have a field with dates (past & future) and I want a combo box that will show only the dates from the current date forward.
G Guest Feb 5, 2005 #2 In your cmb rowsource enter a SQL statement like so: "SELECT DateField FROM TableName WHERE DateField >= Now() ORDER BY DateField DESC"
In your cmb rowsource enter a SQL statement like so: "SELECT DateField FROM TableName WHERE DateField >= Now() ORDER BY DateField DESC"
G Guest Feb 5, 2005 #3 Perfect!! It worked. Thanks so much. Obviously I'm a newbie and so appreciate your help!
V Van T. Dinh Feb 5, 2005 #4 Beware that if you have today's value, it won't show up in your ComboBox. From you description, you should use Date() rather than Now().
Beware that if you have today's value, it won't show up in your ComboBox. From you description, you should use Date() rather than Now().
G Guest Feb 5, 2005 #5 Thank you Van... I'm so glad that I found this discussion group. You all are great!!