Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21319

type mismatch problem

$
0
0
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.

Viewing all articles
Browse latest Browse all 21319

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>