I`ve got lstAmount. I whish to show the sum as a currencyformat in the listbox. How do I do that?
Code:
adInCome = New OleDb.OleDbDataAdapter("SELECT sum(tblIncome.Amount) as Total from tblIncome ;", Me.OleDbConnection)
Try
adInCome .Fill(dsIncome, "dtInncome")
Catch ex As OleDb.OleDbException
MessageBox.Show(ex.Message)
End Try
Me.OleDbConnection.Close()
lstAmount.DataSource = dsIncome.Tables("dtIncome")
lstAmount.ValueMember = "Total"