Which types of formats can be applied on fields in MS Access?

Different types of formats in MS Access are as follows:

  1. Text and Memo format

Diferent formats for text and memo are as follows:

SymbolExplanation
@It indicates a required character or space
&It indicates an optional character or space
<It converts characters to lowercase
>It converts characters to uppercase
@;”XYZ”It displays the text inside double quotes if the user enters no value

 

Some examples of formats for text and memo are as follows:

FormatDatasheet entrydisplay
@@@-@@@@1234567123-4567
@@@-@@@&123456123-456
<HELLOhello
>helloHELLO
@/!HelloHello!
@;”No Data Entered”(blank)No Data Entered
  1. Number Format

Different format for numbers are as follows:

FormatExplanation
00 is a placeholder that displays a digit or 0 if there is none.
## is a placeholder that displays a digit or nothing if there is none.
%% multiplies the number by 100 and added a percent sign.

 

Different examples of formats for numbers are as follows:

FormatDatasheet EntryDisplay
# # #, # # 0.00123456.78123,456.78
$# # #, # #0.000$0.00
# # #.00%.12312.3%
  1. Currency Format

The currency formatting consists of four parts separated by semicolons. These parts are format for positive numbers, format for negative numbers, format for zero values and format for Null values.

FormatExplanation
$# #0.00;($# #0.00)[Red];$0.00;”none”Positive values will be normal currency format, negative numbers will be red in parentheses, zero is entered for zero values, and “none” will be written for Null values.
  1. Date Forma

The easiest way to apply a format is to select from drop-down list as follows:

General dateLong date

Medium date

Short date

Long Time

Medium Time

Short Time

06/19/94 5:34:23pmJune 19, 1994

19-Jun-94

06/19/94

5:34:23PM

5:34 PM

17:34

The user cans also formats the data according to his particular requirements. Different date formats are as follows:

FormatExplanation
dIt displays 1 or 2 characters for day. Its value can be from 1 to 31.
ddIt displays 2 characters for day. Its value can be from 01 to 31 such as 01.
m or mmIt displays month as a number. Its value can be from 1 to 12.
mmmIt displays month using three characters such as Jan, Feb etc.
mmmmIt displays full nam of the month such as January, March etc.
/-It displays separator character.
hIt displays hours.
nIt displays minutes.
sIt displayed seconds.

Some examples of data formats are as follows:

FormatDisplay
dddd “,” mmmm d “,” yyyyMonday, January 1, 2001
ddd “,” mmm “.” d “,”yyMon, Jan. 1, ‘01
“Today is” ddddToday is Monday
H:n:s: AM/PM12L00:00 AM
  1. Yes/No Format

The Yes/No fields are displayed as check boxes by default on the datasheet. It can be changed to textbox by clicking Lookup tab and changing Display Control to a textbox. The formatting is designated in three sections separated by semicolons. The first section contains nothing but semicolon must be included. The second section specifies formatting for Yes values and third for No values as Follows:

FormatExplanation
;”Yes”[green];”no”[red]Prints “Yes” in green or “no” in red