.


:




:

































 

 

 

 





. : Format, month, Nz, Iif, ISNULL

Format

Format , .

:

Format(expr [,format[,firstdayofweek[,firstweekofyear]]])

expr , , , .

format . .

Firstdayofweek , . .

Firstweekofyear , . .

2. 05.01.02, 05.07.02

2

mm Format([]![ ];"mm")  
mmmm Format([]![ ]; "mmmm")
d Format([]![ ];d)  
ddd Format([]![ ];"ddd")
dddd Format([]![ ];"dddd")
y Format([]![ ];"y")  

month

month .

:

Month()

: Month(([]![ ]).

IsNull

IsNull , , .

:

IsNull ()

: , , .

, .

IIF

IIF .

:

IIf(expr, truepart, falsepart)

Expr .

Truepart .

Falsepart .

, , .

:

IIf([]![ ]>10;" ";" ")

IIf(IsNull([]![ ]);0;[]![ ]) , 0.

Nz

Nz .

:

Nz (expr; valueifnull)

Expr . , .

Valueifnull .

: Nz ([]![ ]; 0) , 0.

 

11. ( ).

2 :

1 ( 11-1_ ).

2 ( 11-2_ ).

FORMAT:

1. . .

2. : . . .

3. .

4. 1 (. 14) .

5. 2 . ( 2 .)

6. 3 FORMAT ( ). : Format (expr; fmt; firstweekday; firstweek).

7. . expr: 1 (. 14) , 2 . fmt mm. : Format([]![ ];"mm").

8. .

9. .

10. .

11. 11-1_ . . 20.

20 11-1_ 11

11. . /: 11-1_ , .

12. .

13. , , .

14. : , .

15. SUM .

16. 11-2_ . . 21.

21 11-2_ 11

11 . 11_ 22.

22 11_ 11

1_10. . ( ). MONTH.

1_11. . ( ). FORMAT. . : , . 14-1_ .

 

12. , ( ).

. , 0.

2 :

1 . , .

2 , .

IIF, ISNULL:

1. . .

2. , .

3. : .

4. SUM .

5. 12-1_ . .

6. . / 12-1_ , .

7. .

8. , . , (. 7). : 12-1_ , . . , . ( ) 12-1_ .

9. . , , .

10. . , .

11. 1 (. 14) , 2 . 3 IIF . IIf (expr; truepart; falsepart).

12. . (expr) ISNULL. .11. ISNULL 12-1_ . ISNULL ( truepart IIF), 0; ( ) 12-1_ . : IIf(IsNull([12-1_ ]![]); 0;[12-1_ ]![]).

13. . .

14. ().

15. 12-2_ ().

16. , . . ( 0).

12-2_ () 23.

23 12-2_ () 12

NZ:

1. . / 12-1_ , .

2. . .8 (.30).

3. , NZ. : Nz (expr; valueifnull).

4. . (expr) 12-1_ . valueifnull ( ) 0. : Nz ([12-1_ ]![]; 0).

5. ().

6. 12-2(2)_ ()

7. . .

12-2(2)_ () 24.

24 12-2(2)_ 12

1_12. . ( ) , ( ). . , 0.

3. [1]

13. ( ) . : , , , , , .

.

, 25.

 
 

 

 


25 13

.

13-1_ .

1. . , .

2. .

3. , , , .

4. : , .

5. , . , FORMAT. : expr , fmt mm. : Format([]![ ];"mm").

6. , , . , : , <=[ ]. , Format . .

7. SUM .

8. ( ) ( ). . , 1 (. 14) 3 . .

9. 13-1_ .

10. .

26.

26 13-1_ 13

13-2_ .

1. . , .

2. . , .

3. ( ), ( ), ( ), ( ).

4. , ( format), (. 5, 6 13-1_ ).

5. SUM .

6. (. . 8 13-1_ )

7. 13-2_ .

8. .

27.

27 13-2_ 13

13-3_ .

1. . 13-1_ , 13-2_ .

2. , .

3. . ( ) 13-1_ , 13-2_ . , .

, . : 13-1_ 13-2_ , . .

4. , , 13-1_ , 13-2_ .

! , .

5. . , ( ). .

6. . . , ( NULL NULL). , NZ ( IIF, ISNULL) 0.

13-1_ , -, NZ . : [13-1 ]![]-nz([13-2_ ]![];0). .

7. . 13-3_ . .

! , [ ] 13-1_ , 13-2_ . .

28.

28 13-3_ 13

13-4_ .

1. . /: 13-3_ , , , .

2. .

3. : ( 13-3_ ), ( ), ( ), ( 13-3_ ), ( 13-3_ ), ( 13-3_ ).

4. 13-4_ . .

13 3.

 

3

13-4_
  "" ""      
  "" ""      
  "" ""      
  "" ""      
  "" ""      
  "" ""      
  "" ""      

 

14. . : , , .

( ) .

, . 29.

29

4.

4

 
 
 
 
 
 
 
 
 
 
 
 

30.

 
 

 

 


30 14

:

, , 1-11 . 14-1_ .

14-2_ .

31.

 


31 14-2_

1. . /: 14-1_ , .

! .

2. ( 14-1_ , ), ( ), ( 14-1_ ), ( 14-1_ ).

3. , .

4. : <=[]![ ]. .

5. SUM .

6. , .

7. 14-2_ . .

32.

32 14-2_ 14

14-3_ ().

1. . /: 14-2_ , .

2. .

3. : , , .

4. 14-3_ (). .

1_13 . . : , , , .

1_14 . . : , , , , .

1_15 . . : , , ( ), .

1_16 . . : , ( ), , ( ), . ( ).

 





:


: 2016-11-12; !; : 458 |


:

:

, ; , .
==> ...

1907 - | 1693 -


© 2015-2024 lektsii.org - -

: 0.073 .