I tried using this and it will not work. If the extended amount is over $1,000.00(any amount even like $1678.98) it only adds $1.00 to the txtPartsTotal.Text. If it's over $2000.00 it adds $2.00.
Public Sub GetPartsTotal()
Dim i As Integer
Dim Parts As Currency
For i = 1 To flexDA.Rows - 1
Parts = Parts + Val(flexDA.TextMatrix(i, 8))
txtPartsTotal.Text = Format(Parts, "Currency"
Next i
End Sub
Col(8) is the extended amount column. It is arrived at by the following formula. (Col(4) is the Part Price column and txtQuantity is the item quantity purchased.)
Flex1.Additem Format(cboQuantity.Text * flexChoose.TextMatrix(i, 4), "Currency"
This statement work correctly.
I can't figure out why the first statement will not??? Please help me. I'm pulling my hair out. Every day above ground is a GOOD DAY!!!
Public Sub GetPartsTotal()
Dim i As Integer
Dim Parts As Currency
For i = 1 To flexDA.Rows - 1
Parts = Parts + Val(flexDA.TextMatrix(i, 8))
txtPartsTotal.Text = Format(Parts, "Currency"
Next i
End Sub
Col(8) is the extended amount column. It is arrived at by the following formula. (Col(4) is the Part Price column and txtQuantity is the item quantity purchased.)
Flex1.Additem Format(cboQuantity.Text * flexChoose.TextMatrix(i, 4), "Currency"
This statement work correctly.
I can't figure out why the first statement will not??? Please help me. I'm pulling my hair out. Every day above ground is a GOOD DAY!!!