I attached the debug HTML document for your review. Is this how the select statement should be formed??? I would have sent the same SELECT TOP 10000... again personally (again not that I would do that in production! LOL)
Ben
To turn on data debugging do the following:
In the AppMain.vb (or program.cs) file, go to the SetDataSourcesMethod. After the SetConnections method, add the following code:
Run your program and after the app closes the HTML doc will pop up (if it doesn't you can manually open it).
10,000 is too many and I would recommend reworking your logic so that you work in smaller data sets. If you set the MaximumRecords to 1500 I would doubt that the error would occur.
This is not something I would do in production but... In my POC application, I changed the BrowseDialog1.MaximumReturnedRecords to 10,000. When I do a search with no criteria (bring back the first 10,000 entries), I receive the attached exception regardless which record I select for edit, upon return to the entry form. If I change the MaximumReturnedRecords back to 1,000 (the default), all is well.
Can someone shed some light on this error?
Thanks!