Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FORMAT DECIMALS IN A MESSAGE BOX

Status
Not open for further replies.

HRAHIMI

Programmer
Nov 19, 2002
11
US
How can I format a field in a message box?? I need to format the decimal places.
Thanks!
 
use the format command.

If you want a more specific answer, give us a more specific question. =============
Jeremy Wallace
Designing, Developing, and Deploying Access Databases Since 1995

Take a look at the Developers' section of the site for some helpful fundamentals.
 
OK I have the following line in my code:
MsgBox ("WARNING, there is a balance of $" & [Forms]![frmdomesticbal]![Text25] & ". ")

Using the format command how can I format the decimal places.

Thanks!
 
Try using the format() function.

Example: (in the immediate window [Ctrl-G])

msgbox "Approx. PI value = 22/7" & vbcrlf & "RAW VALUE: " & 22/7 & vbcrlf & "5 DIGITS: " & format(22/7, "0.00000") Jim Kraxberger
Spinning gold into straw...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top