I'm pretty new to VB.NET and I'm trying to create what should be a simple Add/Edit/Save form using a BindingNavigator, BindingSource, and TableAdapter. I dragged the table from the Data Sources Explorer and VB.Net has created the controls (textboxes, comboboxes) that are needed, the BindingNavigator, and also the code that is supposed to work. However when I run the app, click on the "add new" button and then the "save" button, the record never appears in the table. The odd thing is that if I click "add new" and then "save" without entering any data I get an error saying that null values are not allowed, which would be correct. If I add values to the table by hand it has no problem navigating through them, but it will not add a new record or delete an existing record. I'm sure the problem is in the BindingSource or TableAdapter, but I'm lost as to where to go from there. Any suggestions would be well appreciated. Thanks.
Red Flag Submitted
Thank you for helping keep Tek-Tips Forums free from inappropriate posts. The Tek-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Tek-Tips forums is a member-only feature.