Using VB.NET 2003 connected to a SQL Server database I'm creating an application that collects the results of a survey. So far it’s able to display and move through the pre-existing records, but I'm unable to create new records. Using the code below, when the "New Survey" button is clicked a new record appears in the database but the application doesn’t move to the new record and let me enter information. When I look at the database after trying to enter a new survey, I see the new row but it’s grayed out and is inaccessible from the application.
Does anyone know why this is happening and what I need to do to resolve it? Thanks!
VB.NET:
Private Sub NewSurvey_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NewSurvey.Click
Me.BindingContext(DsSurvey1, "survey_tbl").AddNew()
End Sub
Does anyone know why this is happening and what I need to do to resolve it? Thanks!
Last edited by a moderator: