It formats it ok.....but now it won't sum the textbox amounts into my label......
here is part my code.....any suggestions?
Private Sub Command22_Click()
Text1.Text = TotalColumn(MSFlexGrid1, 12)
Dim amount As Single
amount = Text1.Text
Text1.Text = Format(amount, "currency"
End Sub
Private Function TotalColumn(grid As MSFlexGrid, ByVal ColIndex As Long) As Long
Dim R As Long
Dim Total As Long
For R = 0 To grid.Rows - 1
If IsNumeric(grid.TextMatrix(R, ColIndex)) Then
Total = Total + (grid.TextMatrix(R, ColIndex))
End If
Next R
TotalColumn = Total
End Function
Private Sub Command23_Click()
Text7.Text = TotalColumn(MSFlexGrid1, 9)
Dim amount As Single
amount = Text7.Text
Text7.Text = Format(amount, "currency"

End Sub
Private Sub Command24_Click()
Dim first, second, third, fourth 'declare variables
first = Val(Text1.Text)
second = Val(Text3.Text)
third = Val(Text4.Text)
fourth = Val(Text7.Text)
Label1.Caption = first + second + third + fourth
Dim amount As Single
amount = Label1.Caption
Label1.Caption = Format(amount, "currency"
End Sub