Hi,
I'm having problem to display the grand total as a Currency format. The value is taken from the datagrid. This is what i've done..
My problem is, it's not working. The value should be displayed as a Currency format.
Any idea? Thanx in advance..
I'm having problem to display the grand total as a Currency format. The value is taken from the datagrid. This is what i've done..
Code:
Set rsgtot = New ADODB.Recordset
rsgtot.Open "SELECT Sum (price * pt) AS [GrandTotal] FROM
[Order Details] where SN=" & "'" & txtFields
(0).Text & "'" & "group by SN", db
txtgtotal.Text = FormatCurrency(rsgtot!grandtotal)
My problem is, it's not working. The value should be displayed as a Currency format.
Any idea? Thanx in advance..