ACC2: How to Format Data in Combo Boxes and List BoxesID: Q120904
|
Novice: Requires knowledge of the user interface on single-user computers.
Microsoft Access displays data in list boxes and combo boxes whose
RowSource property is set to a table or query using the format defined in
the underlying fields' Format property.
If you want the data in a list box or combo box to be displayed with a
different format, you can create a query and set the fields' formats using
the query's Format property, or you can use the Format() function in an
expression.
If a list box or combo box's RowSource property is set to an SQL statement,
a field's Format property will have no affect on how the data is displayed,
because SQL statements do not contain or specify any formatting
information.
NOTE: In version 7.0, combo boxes have a Format property.
To change the format for a field in a query, follow these steps:
format([MyDate],"dddd mmmm d, yyyy")
Saturday January 1, 1994
format([MyNumber],"$#,##0;($#,##0)")
$1,256
($1,256)
For more information about formatting data, search for "Format," and then "Formatting a Field" using the Microsoft Access Help menu.
Keywords : kbusage FmsCmbo
Version : 2.0
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: April 7, 1999