Creating new records problems

mech55

Member
Joined
Jan 26, 2005
Messages
13
Programming Experience
1-3
I'm recently began getting a data exception whenever I try to create a new record. Basically I get a dataexception message that says that my primary key cannot be null whenver I click the button that supposed to add new records. Here is my code, Thanks for any help.

VB.NET:
Try
Me.BindingContext(Dsfr1, "Radios").EndCurrentEdit()
Me.BindingContext(Dsfr1, "Radios").AddNew()

'some non related code

Catch ex as DataException
Msgbox(ex.Message)
end try
 
Back
Top