Hello,
I am completely beginner in VB.Net and have to work on some project..
I have 'Customer' table in database 'hotelData' with following fields
CustomerID - (Primary, Number)
FirstName
LastName
Address
PhNo
MobileNo
After watching some video tutorials provided by Microsoft. I created a Windows Form and dragged Data Source (Customer) into it, it created TableAdapter. When I ran the project, it was fetching values from Customer table. I added one record and clicked on Save but it gave me one exception :
"CustomerID does not allow Null"
When I removed Primary Key from CustomerID and tried to save the data. Exception didn't occurred but the it failed to update database.
Can anyone help me out?
I am completely beginner in VB.Net and have to work on some project..
I have 'Customer' table in database 'hotelData' with following fields
CustomerID - (Primary, Number)
FirstName
LastName
Address
PhNo
MobileNo
After watching some video tutorials provided by Microsoft. I created a Windows Form and dragged Data Source (Customer) into it, it created TableAdapter. When I ran the project, it was fetching values from Customer table. I added one record and clicked on Save but it gave me one exception :
"CustomerID does not allow Null"
When I removed Primary Key from CustomerID and tried to save the data. Exception didn't occurred but the it failed to update database.
Can anyone help me out?