Hello,
I need to display on a form, on a textbox, the value of a sum of records that is on a Query on my database. I've the following code:
How can I make something like:
Thanks,
João Pinto
I need to display on a form, on a textbox, the value of a sum of records that is on a Query on my database. I've the following code:
Code:
con2.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=""C:\Programaçao\Visual Basic\Inapal\ReportIt\ReportIt.mdb"";"
con2.Open()
sSQL2 = "SELECT Qtd FROM [TotalScrapQuery] WHERE ((Data LIKE'" & DateReport.Text & "') AND (Turno LIKE'" & ShiftReport.Text & "'))"
da2 = New OleDb.OleDbDataAdapter(sSQL2, con2)
ds2.Clear()
da2.Fill(ds2, "TotalScrapQuery")
con2.Close()
How can I make something like:
Code:
ScrapBox.text=Qtd
Thanks,
João Pinto