jennyek2000
Programmer
I type in the following code in order to display a particular row in some bound text boxes. SearchIndex is a variable that represents the jobNumber of a row selected on a datagrid on a different screen and I want to be able to display the record on the text boxes.
bmjobs.Position = mydataset.Tables("Jobs"
.Rows.Find("JobNumber = '" & myfrmSearchjobs.searchIndex & "'"
.ToString
However, when I run this code. It says that "Table doesnt have a primary key" which it does! (in fact, JobNumber IS the primary key).
Can anyone tell me what to do and why this is happening?
bmjobs.Position = mydataset.Tables("Jobs"
However, when I run this code. It says that "Table doesnt have a primary key" which it does! (in fact, JobNumber IS the primary key).
Can anyone tell me what to do and why this is happening?