Assuming that you're using the CrystalReportViewer.
Public Class Reports
Private objRpt As New CrystalReport1
Public Sub ReportLastRecord()
Dim con As OleDbConnection
Dim connectionString As String = "<your connectionstring>"
Dim sql As String
sql = "SELECT TOP 1 * FROM (SELECT * FROM <table> ORDER BY id ASC)"
con = New OleDbConnection(connectionString)
Dim da As New OleDbDataAdapter(sql, con)
Dim dt As New DataTable("LastRecord")
CrystalReportViewer1.ReportSource = objRpt
Need some help with this Array. I am trying to get the sum of the even numbers and the sum of the odd numbers using a for each loop. I know the answers to what I am trying to achive are sum of even = 84 and the sum of ...
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...