I am positive this piece of code was working the other day and can't figure out why it isn't finding values to be equal.
cmd.CommandText = "SELECT * FROM Collection WHERE CollectionType = '" & Me.Cmb_CollectionType.Text & "'"
cmd.Connection = SqlConnection1
SqlConnection1.Open()
dr = cmd.ExecuteReader(CommandBehavior.CloseConnection)
While dr.Read
For x As Integer = 1 To 15
If dr.Item(x).ToString = Me.Txt_Attribute.Text.TrimEnd(" ") Then
Thanks in advance,
-JW
cmd.CommandText = "SELECT * FROM Collection WHERE CollectionType = '" & Me.Cmb_CollectionType.Text & "'"
cmd.Connection = SqlConnection1
SqlConnection1.Open()
dr = cmd.ExecuteReader(CommandBehavior.CloseConnection)
While dr.Read
For x As Integer = 1 To 15
If dr.Item(x).ToString = Me.Txt_Attribute.Text.TrimEnd(" ") Then
Thanks in advance,
-JW