Howdy - I cannot get the 2 format functions (below) to work. Any ideas?
strSQLCmd = "Select sum(OrigAmount) as OrigAmt, sum(CreditAmount) as credamt, sum(Amount) as balance, sum(retainage) as retainage " & _
"from ARData where PM = " & "'" & cboPM.Text & "'"
rsTotals.Open strSQLCmd, cnAR, adOpenStatic, adLockOptimistic, adCmdText
With rsTotals
txtOriginal.Text = Str(Format(!origamt, "##,###,###.00")
txtCredit.Text = Str(Format(!credamt, "##,###,###.00")
txtRetainage.Text = Str(!retainage)
txtBalance.Text = Str(!balance)
End With
All I get is the unformatted data value.
Thanks
strSQLCmd = "Select sum(OrigAmount) as OrigAmt, sum(CreditAmount) as credamt, sum(Amount) as balance, sum(retainage) as retainage " & _
"from ARData where PM = " & "'" & cboPM.Text & "'"
rsTotals.Open strSQLCmd, cnAR, adOpenStatic, adLockOptimistic, adCmdText
With rsTotals
txtOriginal.Text = Str(Format(!origamt, "##,###,###.00")
txtCredit.Text = Str(Format(!credamt, "##,###,###.00")
txtRetainage.Text = Str(!retainage)
txtBalance.Text = Str(!balance)
End With
All I get is the unformatted data value.
Thanks