I'm just start to make an application. I got some textfield that must filled with integer value, but when the textfield is empty, I want the value is still null in database rather than must add "0".
it's something like this
DR.IN = Me.txtIn.Text
DR.OUT = Me.txtOut.Text
the two of that is integer value, that when i'm save to data base the error comes and said
The Nullable Object Must Have Value
I must add "0", but I want the data is still null. Do anyone know how to do that?
thanks for your help and sorry for really bad grammar, I hope someone out there would understand my question :)
DR.INandDR.OUT? Where is the error raised?DR.INandDR.OUTare nullable ints.Something like Dim DR.IN? as int