I am getting type mismatch problem like
In my database the datatype for minimumlevel is integer and I am trying to updating this record from a textbox but I am getting type mismatch, so what I did was to rs.fields("minimumlevel")=iif(text1.text="",0,text1.text)
the default value of this on the database is NULL
So I need to create that iif statement if the textbox is empty.
My question is how do you determine what database type that will be ok for empty textbox for saving and or updating so as to anticipate this
type of error.
In my database the datatype for minimumlevel is integer and I am trying to updating this record from a textbox but I am getting type mismatch, so what I did was to rs.fields("minimumlevel")=iif(text1.text="",0,text1.text)
the default value of this on the database is NULL
So I need to create that iif statement if the textbox is empty.
My question is how do you determine what database type that will be ok for empty textbox for saving and or updating so as to anticipate this
type of error.