Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / Microsoft Access [игнор отключен] [закрыт для гостей] / 157156 => 00157/156 / 7 сообщений из 7, страница 1 из 1
12.08.2003, 15:31
    #32234254
Sfagnum
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
157156 => 00157/156
как эту масочку сделать? что-то такое я недавно, но так и не нашёл 4 страницы пролистал....

маска #####/## - не сработала выдаёт 15715/6
...
Рейтинг: 0 / 0
12.08.2003, 15:36
    #32234262
Geo
Geo
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
157156 => 00157/156
Format(407,"000")
Format(1,"00")
Format(810,"000")
Format(4,"0000")
Format(569,"0000000")

(c) BC
...
Рейтинг: 0 / 0
12.08.2003, 15:38
    #32234265
VIG_
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
157156 => 00157/156
Format("157156", "00###/###")
...
Рейтинг: 0 / 0
12.08.2003, 15:40
    #32234272
VIG_
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
157156 => 00157/156
или
Format("157156", "00000/###")
...
Рейтинг: 0 / 0
12.08.2003, 15:45
    #32234282
Sfagnum
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
157156 => 00157/156
Спасибо всем в особенности VIG_ за конкретику

Заодно может подскажете почему в Control Source'e не льзя юзать данное выражение

P.S. Access'97
...
Рейтинг: 0 / 0
12.08.2003, 15:47
    #32234287
Sfagnum
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
157156 => 00157/156
Гляньте как аксес перелабал
было:
Format(dbo_tblGoodsCloth.Article, "00###/###")
стало:
Format(dbo_tblGoodsCloth.Article,"00000\/000")
...
Рейтинг: 0 / 0
12.08.2003, 16:15
    #32234348
Senin Viktor
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
157156 => 00157/156
> было:
Format(dbo_tblGoodsCloth.Article, "00###/###")
стало:
Format(dbo_tblGoodsCloth.Article,"00000\/000")


Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
 0 ) Digit placeholder. Display a digit or a zero. If the expression has a digit in the 
position where the  0  appears in the format string, display it; otherwise, display a 
zero in that position. 

If the number has fewer digits than there are zeros (on either side of the decimal) 
in the format expression, display leading or trailing zeros. If the number has more 
digits to the right of the decimal separator than there are zeros to the right of the 
decimal separator in the format expression, round the number to as many decimal 
places as there are zeros. If the number has more digits to the left of the decimal 
separator than there are zeros to the left of the decimal separator in the format 
expression, display the extra digits without modification.
 
(#) Digit placeholder. Display a digit or nothing. If the expression has a digit in the 
position where the # appears in the format string, display it; otherwise, display 
nothing in that position. 

This symbol works like the  0  digit placeholder, except that leading and trailing 
zeros aren't displayed if the number has the same or fewer digits than there are # 
characters on either side of the decimal separator in the format expression.

...
Рейтинг: 0 / 0
Форумы / Microsoft Access [игнор отключен] [закрыт для гостей] / 157156 => 00157/156 / 7 сообщений из 7, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]