SlideShare a Scribd company logo
1 of 18
Field properties
objectives
• Field Formats
• Input mask
• Validation Rule
• Validation text
• Default value
Format
• The Format property affects only how data is displayed. It doesn't affect
how data is stored.
• You can use one of the predefined formats or you can create a custom
format by using formatting symbols.
• The Format property uses different settings for different data types.
• You can use the format to customize the way numbers, dates, times, and
texts are displayed or printed.
Symbol Meaning
(space) Display spaces as literal characters.
"ABC"
Display anything inside quotation marks as
literal characters.
! Force left alignment instead of right alignment.
* Fill available space with the next character.

Display the next character as a literal character.
You can also display literal characters by placing
quotation marks around them.
[colour]
Display the formatted data in the colour
specified between the brackets. Available
colours: Black, Blue, Green, Cyan, Red, Magenta,
Yellow, White.
Format Property - Number and
Currency Data Types
You can create custom number formats by using the following symbols:
Symbol Description
. (period)
Decimal separator. Separators are set in
the regional settings in Windows.
, (comma) Thousand separator.
0 Digit placeholder. Display a digit or 0.
#
Digit placeholder. Display a digit or
nothing.
$ Display the literal character "$".
%
Percentage. The value is multiplied by 100
and a percent sign is appended.
Format Property - Number and
Currency Data Types
-You can use the format to customize the way numbers, dates, times, and texts are
displayed or printed.
-Custom format number can have one to four section with (;) as the list separator.
Section Description
First The format for positive numbers.
Second The format for negative numbers.
Third The format for zero values.
Fourth
The format for Null (Null: A value you can
enter in a field or use in expressions or
queries to indicate missing or unknown
data.
Format Property - Number and
Currency Data Types
Examples:
$#,##0.00
£#,##0.00[Blue]
+0.00;-0.00;0.00;”Null”
0;(0);;”Unknown”
00.00[Blue];(-00.00)[Red];”Zero”;”Empty”
Format Property - Text and Memo
Data Types
Symbol Description
@
Text character (either a character or a
space) is required.
& Text character is not required.
< Force all characters to lowercase.
> Force all characters to uppercase.
You can create custom text and memo formats by using the following symbols.
Format Property - Text and Memo
Data Types
Section Description
First Format for fields with text.
Second
Format for fields with zero-length
strings (zero-length string: A string that
contains no characters.
Custom formats for Text and Memo fields can have up to two sections.
Each section contains the format specification for different data in a field.
Format Property - Text and Memo
Data Types
Examples:
@;”None”
>;@[Blue];”Unknown”[Red]
@[Green]
<@[Blue];”Null”[Red]
Format Property - Date/Time Data Type
Symbol Description
: (colon)
Time separator (separator: A character that separates units of
text or numbers.). Separators are set in the regional settings of
Windows.
/ Date separator.
c Same as the General Date predefined format.
d
Day of the month in one or two numeric digits, as needed (1 to
31).
dd Day of the month in two numeric digits (01 to 31).
ddd First three letters of the weekday (Sun to Sat).
dddd Full name of the weekday (Sunday to Saturday).
ddddd Same as the Short Date predefined format.
dddddd Same as the Long Date predefined format.
w Day of the week (1 to 7).
ww Week of the year (1 to 53).
m
Month of the year in one or two numeric digits, as needed (1 to
12).
mm Month of the year in two numeric digits (01 to 12).
mmm First three letters of the month (Jan to Dec).
mmmm Full name of the month (January to December).
You can create custom date and time formats by using the following symbols.
Format Property - Date/Time Data Type
q Date displayed as the quarter of the year (1 to 4).
y Number of the day of the year (1 to 366).
yy Last two digits of the year (01 to 99).
yyyy Full year (0100 to 9999).
h Hour in one or two digits, as needed (0 to 23).
hh Hour in two digits (00 to 23).
n Minute in one or two digits, as needed (0 to 59).
nn Minute in two digits (00 to 59).
s Second in one or two digits, as needed (0 to 59).
ss Second in two digits (00 to 59).
ttttt Same as the Long Time predefined format.
AM/PM
Twelve-hour clock with the uppercase letters "AM" or "PM", as
appropriate.
am/pm
Twelve-hour clock with the lowercase letters "am" or "pm", as
appropriate.
A/P
Twelve-hour clock with the uppercase letter "A" or "P", as
appropriate.
a/p
Twelve-hour clock with the lowercase letter "a" or "p", as
appropriate.
AMPM
Twelve-hour clock with the appropriate morning/afternoon
designator as defined in the regional settings of Windows
Setting Display
ddd", "mmm d", "yyyy Mon, Jun 2, 1997
mmmm dd", "yyyy June 02, 1997
"This is week number "ww This is week number 22
"Today is "dddd Today is Tuesday
Example
The following are examples of custom date/time format.
Format Property - Date/Time Data
Type
Input mask
- You can use the Input Mask property to make data entry easier and to
control the values users can enter in a text box.
- Input masks are helpful for data-entry operations such as an input mask
for a Phone Number field that shows you exactly how to enter a new
number: (___) ___-____.
- When you've defined an input mask and set the Format property for the
same field, the Format property takes precedence when the data is
displayed. This means that even if you've saved an input mask, the input
mask is ignored when data is formatted and displayed
Character Description
0
Digit (0 to 9, entry required, plus [+] and minus [–] signs not
allowed).
9
Digit or space (entry not required, plus and minus signs not
allowed).
#
Digit or space (entry not required; spaces are displayed as blanks
while in Edit mode, but blanks are removed when data is saved;
plus and minus signs allowed).
L Letter (A to Z, entry required).
? Letter (A to Z, entry optional).
A Letter or digit (entry required).
a Letter or digit (entry optional).
& Any character or a space (entry required).
C Any character or a space (entry optional).
. , : ; - /
Decimal placeholder and thousand, date, and time
separators (separator: A character that separates units of text or
numbers.). (The actual character used depends on the settings in
the Regional Settings Properties dialog box in Windows Control
Panel).
< Causes all characters to be converted to lowercase.
> Causes all characters to be converted to uppercase.
!
Causes the input mask to display from right to left, rather than
from left to right. Characters typed into the mask always fill it from
left to right. You can include the exclamation point anywhere in the
input mask.

Causes the character that follows to be displayed as the literal
character (for example, A is displayed as just A).
You can define a custom input mask by using the following characters.
Input mask
Examples:
Input mask Sample values
(000) 000-0000 (206) 555-0248
(999) 999-9999
(206) 555-0248
( ) 555-0248
(000) AAA-AAAA (206) 555-TELE
#999
–20
2000
>L????L?000L0
GREENGR339M3
MAY R 452B7
>L0L 0L0 T2F 8M4
00000-9999
98115-
98115-3007
>L<??????????????
Maria
Brendan
SSN 000-00-0000 SSN 555-55-5555
>LL00000-0000 DB51392-0493
Validation Rule
• You can use the Validation Rule property to specify requirements for data
entered into a record, field, or control. When data is entered that violates the
Validation Rule setting, you can use the Validation Text property to specify
the message to be displayed to the user.
• The maximum length for the Validation Rule property setting is 2048
characters.
• Microsoft Access automatically validates values based on a field's data type;
for example, Microsoft Access doesn't allow text in a numeric field. You can set
rules that are more specific by using the Validation Rule property.
• If you create a validation rule for a field, Microsoft Access doesn't normally
allow a Null value to be stored in the field. If you want to allow a Null value,
add "Is Null" to the validation rule, as in "<> 8 Or Is Null" and make sure the
Required property is set to No.
Validation Rule and text examples
Validation Rule property Validation Text property
<> 0 Entry must be a nonzero value.
> 1000 Or Is Null
Entry must be blank or greater than
1000.
Like "A????"
Entry must be 5 characters and begin
with the letter "A".
>= #1/1/96# And <#1/1/97# Entry must be a date in 1996.
>=18 And <=35
Entry must be between 18 and 35
including both numbers.
Default value
• Specifies a value that is automatically entered in a field when a new record
is created. For example, in an Addresses table you can set the default
value for the City field to Sulaimani. When users add a record to the table,
they can either accept this value or enter the name of a different city.
• The Default Value property applies to all table fields except those fields
with the data type of AutoNumber or OLE Object.
• The Default Value property is applied only when you add a new record. If
you change the Default Value property, the change isn't automatically
applied to existing records.

More Related Content

Viewers also liked

recruitment & retention introduction V2
recruitment & retention introduction V2recruitment & retention introduction V2
recruitment & retention introduction V2Hagit Nof
 
April Parker Mystery Shop
April Parker Mystery ShopApril Parker Mystery Shop
April Parker Mystery ShopApril Parker
 
Deep learning review
Deep learning reviewDeep learning review
Deep learning reviewManas Gaur
 
Communicating information with graphs
Communicating information with graphsCommunicating information with graphs
Communicating information with graphsMarilyn J
 
Derechos y obligaciones que tienen los prestadores de servicios de internet
Derechos y obligaciones que tienen los prestadores de servicios de internetDerechos y obligaciones que tienen los prestadores de servicios de internet
Derechos y obligaciones que tienen los prestadores de servicios de internetGCIRIDIAN
 
Ольга Нерода: Тренды в дизайне Email-рассылок
Ольга Нерода: Тренды в дизайне Email-рассылокОльга Нерода: Тренды в дизайне Email-рассылок
Ольга Нерода: Тренды в дизайне Email-рассылокAlexander Rys
 
Pizza hut
Pizza hutPizza hut
Pizza hutanupam
 

Viewers also liked (10)

365on Lab - Asp.Net MVC
365on Lab - Asp.Net MVC365on Lab - Asp.Net MVC
365on Lab - Asp.Net MVC
 
recruitment & retention introduction V2
recruitment & retention introduction V2recruitment & retention introduction V2
recruitment & retention introduction V2
 
April Parker Mystery Shop
April Parker Mystery ShopApril Parker Mystery Shop
April Parker Mystery Shop
 
Rumbos Revista.pptx
Rumbos Revista.pptxRumbos Revista.pptx
Rumbos Revista.pptx
 
Deep learning review
Deep learning reviewDeep learning review
Deep learning review
 
Communicating information with graphs
Communicating information with graphsCommunicating information with graphs
Communicating information with graphs
 
Derechos y obligaciones que tienen los prestadores de servicios de internet
Derechos y obligaciones que tienen los prestadores de servicios de internetDerechos y obligaciones que tienen los prestadores de servicios de internet
Derechos y obligaciones que tienen los prestadores de servicios de internet
 
Ольга Нерода: Тренды в дизайне Email-рассылок
Ольга Нерода: Тренды в дизайне Email-рассылокОльга Нерода: Тренды в дизайне Email-рассылок
Ольга Нерода: Тренды в дизайне Email-рассылок
 
Pizza hut
Pizza hutPizza hut
Pizza hut
 
Clare Air Presentation__
Clare Air Presentation__Clare Air Presentation__
Clare Air Presentation__
 

Similar to Field properties

Introduction TO Microsoft Access
Introduction TO Microsoft AccessIntroduction TO Microsoft Access
Introduction TO Microsoft AccessChhom Karath
 
Datatypes, Field Properties, Validation and Masking
Datatypes, Field Properties, Validation and MaskingDatatypes, Field Properties, Validation and Masking
Datatypes, Field Properties, Validation and Maskingstarsmileygirl34
 
Sterling Integrator Map Editor
Sterling Integrator Map EditorSterling Integrator Map Editor
Sterling Integrator Map EditorJeyhind M
 
Validation and input formatting
Validation and input formattingValidation and input formatting
Validation and input formattingNeha Kaurav
 
Visual Basic Fundamentals
Visual Basic FundamentalsVisual Basic Fundamentals
Visual Basic FundamentalsDivyaR219113
 
SQL (Basic to Intermediate Customized 8 Hours)
SQL (Basic to Intermediate Customized 8 Hours)SQL (Basic to Intermediate Customized 8 Hours)
SQL (Basic to Intermediate Customized 8 Hours)Edu4Sure
 
Functions data format
Functions data formatFunctions data format
Functions data formatgtankariagt
 
2018 02 20_biological_databases_part2_v_upload
2018 02 20_biological_databases_part2_v_upload2018 02 20_biological_databases_part2_v_upload
2018 02 20_biological_databases_part2_v_uploadProf. Wim Van Criekinge
 
Sap script system_symbol
Sap script system_symbolSap script system_symbol
Sap script system_symbolmoderngladiator
 
1 data types
1 data types1 data types
1 data typesRam Kedem
 

Similar to Field properties (20)

Introduction TO Microsoft Access
Introduction TO Microsoft AccessIntroduction TO Microsoft Access
Introduction TO Microsoft Access
 
Datatypes, Field Properties, Validation and Masking
Datatypes, Field Properties, Validation and MaskingDatatypes, Field Properties, Validation and Masking
Datatypes, Field Properties, Validation and Masking
 
Sterling Integrator Map Editor
Sterling Integrator Map EditorSterling Integrator Map Editor
Sterling Integrator Map Editor
 
Mql4 manual
Mql4 manualMql4 manual
Mql4 manual
 
Mql4 manual
Mql4 manualMql4 manual
Mql4 manual
 
Validation and input formatting
Validation and input formattingValidation and input formatting
Validation and input formatting
 
Visual Basic Fundamentals
Visual Basic FundamentalsVisual Basic Fundamentals
Visual Basic Fundamentals
 
012. SQL.pdf
012. SQL.pdf012. SQL.pdf
012. SQL.pdf
 
Access
AccessAccess
Access
 
MSAvMySQL.pptx
MSAvMySQL.pptxMSAvMySQL.pptx
MSAvMySQL.pptx
 
07 sap scripts
07 sap scripts07 sap scripts
07 sap scripts
 
SQL (Basic to Intermediate Customized 8 Hours)
SQL (Basic to Intermediate Customized 8 Hours)SQL (Basic to Intermediate Customized 8 Hours)
SQL (Basic to Intermediate Customized 8 Hours)
 
Functions data format
Functions data formatFunctions data format
Functions data format
 
2018 02 20_biological_databases_part2_v_upload
2018 02 20_biological_databases_part2_v_upload2018 02 20_biological_databases_part2_v_upload
2018 02 20_biological_databases_part2_v_upload
 
Sap script system_symbol
Sap script system_symbolSap script system_symbol
Sap script system_symbol
 
INTRODUCTION TO C
INTRODUCTION TO CINTRODUCTION TO C
INTRODUCTION TO C
 
Field Types
Field TypesField Types
Field Types
 
DBMS
DBMSDBMS
DBMS
 
1 data types
1 data types1 data types
1 data types
 
2017 biological databasespart2
2017 biological databasespart22017 biological databasespart2
2017 biological databasespart2
 

More from Dastan Kamaran

Create table relationships
Create table relationshipsCreate table relationships
Create table relationshipsDastan Kamaran
 
Create table relationships
Create table relationshipsCreate table relationships
Create table relationshipsDastan Kamaran
 
Oop lecture1-chapter1(review of java)
Oop lecture1-chapter1(review of java)Oop lecture1-chapter1(review of java)
Oop lecture1-chapter1(review of java)Dastan Kamaran
 
Oop lecture1-chapter1(review of java)
Oop lecture1-chapter1(review of java)Oop lecture1-chapter1(review of java)
Oop lecture1-chapter1(review of java)Dastan Kamaran
 

More from Dastan Kamaran (7)

Quiz 1
Quiz 1Quiz 1
Quiz 1
 
Q1 (a)
Q1 (a)Q1 (a)
Q1 (a)
 
Create table relationships
Create table relationshipsCreate table relationships
Create table relationships
 
Field properties
Field propertiesField properties
Field properties
 
Create table relationships
Create table relationshipsCreate table relationships
Create table relationships
 
Oop lecture1-chapter1(review of java)
Oop lecture1-chapter1(review of java)Oop lecture1-chapter1(review of java)
Oop lecture1-chapter1(review of java)
 
Oop lecture1-chapter1(review of java)
Oop lecture1-chapter1(review of java)Oop lecture1-chapter1(review of java)
Oop lecture1-chapter1(review of java)
 

Recently uploaded

定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一ffjhghh
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...Pooja Nehwal
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPramod Kumar Srivastava
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Sapana Sha
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts ServiceSapana Sha
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSAishani27
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
Aminabad Call Girl Agent 9548273370 , Call Girls Service Lucknow
Aminabad Call Girl Agent 9548273370 , Call Girls Service LucknowAminabad Call Girl Agent 9548273370 , Call Girls Service Lucknow
Aminabad Call Girl Agent 9548273370 , Call Girls Service Lucknowmakika9823
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 

Recently uploaded (20)

定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
 
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
 
Decoding Loan Approval: Predictive Modeling in Action
Decoding Loan Approval: Predictive Modeling in ActionDecoding Loan Approval: Predictive Modeling in Action
Decoding Loan Approval: Predictive Modeling in Action
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts Service
 
E-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptxE-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptx
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICS
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
Aminabad Call Girl Agent 9548273370 , Call Girls Service Lucknow
Aminabad Call Girl Agent 9548273370 , Call Girls Service LucknowAminabad Call Girl Agent 9548273370 , Call Girls Service Lucknow
Aminabad Call Girl Agent 9548273370 , Call Girls Service Lucknow
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 

Field properties

  • 2. objectives • Field Formats • Input mask • Validation Rule • Validation text • Default value
  • 3. Format • The Format property affects only how data is displayed. It doesn't affect how data is stored. • You can use one of the predefined formats or you can create a custom format by using formatting symbols. • The Format property uses different settings for different data types. • You can use the format to customize the way numbers, dates, times, and texts are displayed or printed. Symbol Meaning (space) Display spaces as literal characters. "ABC" Display anything inside quotation marks as literal characters. ! Force left alignment instead of right alignment. * Fill available space with the next character. Display the next character as a literal character. You can also display literal characters by placing quotation marks around them. [colour] Display the formatted data in the colour specified between the brackets. Available colours: Black, Blue, Green, Cyan, Red, Magenta, Yellow, White.
  • 4. Format Property - Number and Currency Data Types You can create custom number formats by using the following symbols: Symbol Description . (period) Decimal separator. Separators are set in the regional settings in Windows. , (comma) Thousand separator. 0 Digit placeholder. Display a digit or 0. # Digit placeholder. Display a digit or nothing. $ Display the literal character "$". % Percentage. The value is multiplied by 100 and a percent sign is appended.
  • 5. Format Property - Number and Currency Data Types -You can use the format to customize the way numbers, dates, times, and texts are displayed or printed. -Custom format number can have one to four section with (;) as the list separator. Section Description First The format for positive numbers. Second The format for negative numbers. Third The format for zero values. Fourth The format for Null (Null: A value you can enter in a field or use in expressions or queries to indicate missing or unknown data.
  • 6. Format Property - Number and Currency Data Types Examples: $#,##0.00 £#,##0.00[Blue] +0.00;-0.00;0.00;”Null” 0;(0);;”Unknown” 00.00[Blue];(-00.00)[Red];”Zero”;”Empty”
  • 7. Format Property - Text and Memo Data Types Symbol Description @ Text character (either a character or a space) is required. & Text character is not required. < Force all characters to lowercase. > Force all characters to uppercase. You can create custom text and memo formats by using the following symbols.
  • 8. Format Property - Text and Memo Data Types Section Description First Format for fields with text. Second Format for fields with zero-length strings (zero-length string: A string that contains no characters. Custom formats for Text and Memo fields can have up to two sections. Each section contains the format specification for different data in a field.
  • 9. Format Property - Text and Memo Data Types Examples: @;”None” >;@[Blue];”Unknown”[Red] @[Green] <@[Blue];”Null”[Red]
  • 10. Format Property - Date/Time Data Type Symbol Description : (colon) Time separator (separator: A character that separates units of text or numbers.). Separators are set in the regional settings of Windows. / Date separator. c Same as the General Date predefined format. d Day of the month in one or two numeric digits, as needed (1 to 31). dd Day of the month in two numeric digits (01 to 31). ddd First three letters of the weekday (Sun to Sat). dddd Full name of the weekday (Sunday to Saturday). ddddd Same as the Short Date predefined format. dddddd Same as the Long Date predefined format. w Day of the week (1 to 7). ww Week of the year (1 to 53). m Month of the year in one or two numeric digits, as needed (1 to 12). mm Month of the year in two numeric digits (01 to 12). mmm First three letters of the month (Jan to Dec). mmmm Full name of the month (January to December). You can create custom date and time formats by using the following symbols.
  • 11. Format Property - Date/Time Data Type q Date displayed as the quarter of the year (1 to 4). y Number of the day of the year (1 to 366). yy Last two digits of the year (01 to 99). yyyy Full year (0100 to 9999). h Hour in one or two digits, as needed (0 to 23). hh Hour in two digits (00 to 23). n Minute in one or two digits, as needed (0 to 59). nn Minute in two digits (00 to 59). s Second in one or two digits, as needed (0 to 59). ss Second in two digits (00 to 59). ttttt Same as the Long Time predefined format. AM/PM Twelve-hour clock with the uppercase letters "AM" or "PM", as appropriate. am/pm Twelve-hour clock with the lowercase letters "am" or "pm", as appropriate. A/P Twelve-hour clock with the uppercase letter "A" or "P", as appropriate. a/p Twelve-hour clock with the lowercase letter "a" or "p", as appropriate. AMPM Twelve-hour clock with the appropriate morning/afternoon designator as defined in the regional settings of Windows
  • 12. Setting Display ddd", "mmm d", "yyyy Mon, Jun 2, 1997 mmmm dd", "yyyy June 02, 1997 "This is week number "ww This is week number 22 "Today is "dddd Today is Tuesday Example The following are examples of custom date/time format. Format Property - Date/Time Data Type
  • 13. Input mask - You can use the Input Mask property to make data entry easier and to control the values users can enter in a text box. - Input masks are helpful for data-entry operations such as an input mask for a Phone Number field that shows you exactly how to enter a new number: (___) ___-____. - When you've defined an input mask and set the Format property for the same field, the Format property takes precedence when the data is displayed. This means that even if you've saved an input mask, the input mask is ignored when data is formatted and displayed
  • 14. Character Description 0 Digit (0 to 9, entry required, plus [+] and minus [–] signs not allowed). 9 Digit or space (entry not required, plus and minus signs not allowed). # Digit or space (entry not required; spaces are displayed as blanks while in Edit mode, but blanks are removed when data is saved; plus and minus signs allowed). L Letter (A to Z, entry required). ? Letter (A to Z, entry optional). A Letter or digit (entry required). a Letter or digit (entry optional). & Any character or a space (entry required). C Any character or a space (entry optional). . , : ; - / Decimal placeholder and thousand, date, and time separators (separator: A character that separates units of text or numbers.). (The actual character used depends on the settings in the Regional Settings Properties dialog box in Windows Control Panel). < Causes all characters to be converted to lowercase. > Causes all characters to be converted to uppercase. ! Causes the input mask to display from right to left, rather than from left to right. Characters typed into the mask always fill it from left to right. You can include the exclamation point anywhere in the input mask. Causes the character that follows to be displayed as the literal character (for example, A is displayed as just A). You can define a custom input mask by using the following characters.
  • 15. Input mask Examples: Input mask Sample values (000) 000-0000 (206) 555-0248 (999) 999-9999 (206) 555-0248 ( ) 555-0248 (000) AAA-AAAA (206) 555-TELE #999 –20 2000 >L????L?000L0 GREENGR339M3 MAY R 452B7 >L0L 0L0 T2F 8M4 00000-9999 98115- 98115-3007 >L<?????????????? Maria Brendan SSN 000-00-0000 SSN 555-55-5555 >LL00000-0000 DB51392-0493
  • 16. Validation Rule • You can use the Validation Rule property to specify requirements for data entered into a record, field, or control. When data is entered that violates the Validation Rule setting, you can use the Validation Text property to specify the message to be displayed to the user. • The maximum length for the Validation Rule property setting is 2048 characters. • Microsoft Access automatically validates values based on a field's data type; for example, Microsoft Access doesn't allow text in a numeric field. You can set rules that are more specific by using the Validation Rule property. • If you create a validation rule for a field, Microsoft Access doesn't normally allow a Null value to be stored in the field. If you want to allow a Null value, add "Is Null" to the validation rule, as in "<> 8 Or Is Null" and make sure the Required property is set to No.
  • 17. Validation Rule and text examples Validation Rule property Validation Text property <> 0 Entry must be a nonzero value. > 1000 Or Is Null Entry must be blank or greater than 1000. Like "A????" Entry must be 5 characters and begin with the letter "A". >= #1/1/96# And <#1/1/97# Entry must be a date in 1996. >=18 And <=35 Entry must be between 18 and 35 including both numbers.
  • 18. Default value • Specifies a value that is automatically entered in a field when a new record is created. For example, in an Addresses table you can set the default value for the City field to Sulaimani. When users add a record to the table, they can either accept this value or enter the name of a different city. • The Default Value property applies to all table fields except those fields with the data type of AutoNumber or OLE Object. • The Default Value property is applied only when you add a new record. If you change the Default Value property, the change isn't automatically applied to existing records.