handling dbnull information vb.net


i wish beget formatted cost information retrieved an ms-access database stored datatable object/variable, mydatatable. however, fields mydatatable cotain dbnull data. so, following vb.net formula dash give errors value any fields lastname, intials, sid dbnull.



   low mydatatable datatable
low tmpstr string
low sid integer = 1

...
mydatatable = mytableadapter.getdata() ' reads information ms-access table
...

any myitem datarow mydatatable.rows

tmpstr = nameitem("lastname") + " " + nameitem("initials")

myitem("sid")=sid then
' something
finish if

' imitation tmpstr

next


so, i above formula work fields competence enclose dbnull but carrying check any information dbnull ?



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members