i wanT to disply username which is in my database column3
my code:
my code:
Code:
Dim cmd As New SqlCommand cmd = con.CreateCommand() cmd.CommandText = "select * from plane where startdate=@sdate" cmd.Parameters.AddWithValue("@sdate", Date.Today()) Dim rd As SqlDataReader rd = cmd.ExecuteReader() MsgBox(" USER" &rd(3).ToString.Trim()& "PACKAGE IS END TODAY") rd.Close()
Comment