FoeHunter
Board Regular
- Joined
- Nov 12, 2008
- Messages
- 236
Can a messagebox be formated to display a number with commas?
For example, say the following code returns a value of 4,000,000. Can the MsgBox be told to display as 4,000,000.00 instead of 4000000?
For example, say the following code returns a value of 4,000,000. Can the MsgBox be told to display as 4,000,000.00 instead of 4000000?
Code:
Dim TotalVal As Long
TotalVal = DSum("[TotalPrice]", "[SupplyLog]")
MsgBox ("Total dolar value of all transactions $ " & TotalVal), vbInformation, "Title goes here"