I'm still pretty new to VB.NET.
I'm trying to figure out how to display a record from a dataset based on a value entered by the user. In this case, I have multiple lines with a field called "ID". The user should be able to type in an "ID" and have the record appear. I can't seem to figure out how to get it to find the record. I tried using rows.find, but I must not be using it correctly.
Example:
Do Until pstrGameID = txtEnterGameID.Text
drCurrent = DsResults1.tbl_Results.Rows.Find("ID")
pstrGameID = drCurrent.Item("ID")
Loop
Additionally, I have an Option Strict conflict with dumping the ID into pstrGameID. How can I get around this?
I'm trying to figure out how to display a record from a dataset based on a value entered by the user. In this case, I have multiple lines with a field called "ID". The user should be able to type in an "ID" and have the record appear. I can't seem to figure out how to get it to find the record. I tried using rows.find, but I must not be using it correctly.
Example:
Do Until pstrGameID = txtEnterGameID.Text
drCurrent = DsResults1.tbl_Results.Rows.Find("ID")
pstrGameID = drCurrent.Item("ID")
Loop
Additionally, I have an Option Strict conflict with dumping the ID into pstrGameID. How can I get around this?