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

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

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

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

P.S. Access'97
...
Рейтинг: 0 / 0
157156 => 00157/156
    #32234287
Sfagnum
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Гляньте как аксес перелабал
было:
Format(dbo_tblGoodsCloth.Article, "00###/###")
стало:
Format(dbo_tblGoodsCloth.Article,"00000\/000")
...
Рейтинг: 0 / 0
157156 => 00157/156
    #32234348
Фотография Senin Viktor
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
> было:
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
7 сообщений из 7, страница 1 из 1
Форумы / Microsoft Access [игнор отключен] [закрыт для гостей] / 157156 => 00157/156
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


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