金額の先頭に¥マークを付けたい 【Formatプロパティ】

2015-06-09 (Tue) 03:00
金額の先頭に¥マークを付けたい 【TextBox.Formatプロパティ AccessVBA】

TextBox.Format = "¥¥#,##0;-¥¥#,##0;¥¥0"

123456 = ¥123,456

-123456 = -¥123,456

0 = ¥0

Null = Null


 
TextBox.Format (フォーマット) プロパティ

"Format/書式" プロパティは、数値、日時、テキストの表示および印刷形式をカスタマイズするときに使用します。
値の取得および設定が可能です。
文字列型 (String) の値を使用します。

【構文】 expression.Format
 
 
【システム開発】【Access(アクセス) VBA】

Blog Calendar

Blog Category

RSS 2.0