now the problem is i tried to link it together but i have no idea how to compare the data.
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim connection As New SqlConnection()
Dim query As String = "Select * from package where trackingNum=@trackingNum and CurrectLocation=@CurrentLocation"
Dim command As New SqlCommand(query, connection)
connection.ConnectionString = ConnString
connection.Open()
Dim reader As SqlDataReader = command.ExecuteReader()
these code is what i found in internet, and i need help of how to compare the data from sql. thx

New Topic/Question
Reply
MultiQuote







|