ACC1x: Date/Time Format Not Reflected in List/Combo Box (1.x)Last reviewed: May 28, 1997Article ID: Q94175 |
The information in this article applies to:
SYMPTOMSA list or combo box based on a Date/Time field does not display the Date or Time format assigned to the underlying field. This is particularly noticeable in a list or combo box control on a form.
CAUSEMicrosoft Access does not have a Format property for list or combo boxes even though the underlying table field has a defined Format property.
RESOLUTIONUse the Format() function in an expression in a query to format the data. Then base the list or combo box on the query field instead of the underlying table field. For example, define a query named QueryTest. Then instead of entering the name of the underlying Time/Date field (Event Date) as the field on the QBE grid, enter this expression:
Event Day: Format([event date],"mmmm d"", ""yyyy")Base the list or combo box on this query field to display Event Date with the desired format.
STATUSThis behavior no longer occurs in Microsoft Access version 2.0.
MORE INFORMATIONSteps to Reproduce Behavior
|
Additional query words: controls expressions
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |