trend Posted March 26, 2005 Posted March 26, 2005 I am learning how to search through a dataset (using find with tables).. and i keep getting an error saying that I do not have a primary key setup on the table i am searching with... Do you'll have any ideas? Here is my screenshot: http://webpages.charter.net/trend/error.GIF thanks! Lee Quote
trend Posted March 26, 2005 Author Posted March 26, 2005 Is it possible that I just didn't declare something in the vb.net program and that is why i get the error? Quote
eramgarden Posted March 27, 2005 Posted March 27, 2005 that error is very hard to read on that image..can u post it here Quote
trend Posted March 27, 2005 Author Posted March 27, 2005 that error is very hard to read on that image..can u post it here whoops.. sorry It says: An unhandled exception of type 'System.Data.MissingPrimaryKeyException' occured in system.data.dll Additional information: table doesn't have a primary key --- Oh yeah.. does anyone have a good ebook or source on where to learn about datasets? thanks-Lee Quote
eramgarden Posted March 27, 2005 Posted March 27, 2005 can u run your sql in Query Analyzer..whatever you're trying to do to make sure your sql is correct? Again, it's really hard to read your code in that link Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.