test for ado column existence

  • Thread starter Thread starter MattB
  • Start date Start date
M

MattB

I'm try to test if a certain column exists, but keep hitting the null
object reference error. How do I test for a particular column without
throwing an error by referring to it? (vb.net) Thanks!
 
I can't tell what kind of column you mean by your question (ui or table), but in general:

if not isnothing(myObject) the
...cast and do whateve
end i

hth (and if that doesn't, please provide more info

Bil

----- MattB wrote: ----

I'm try to test if a certain column exists, but keep hitting the nul
object reference error. How do I test for a particular column withou
throwing an error by referring to it? (vb.net) Thanks
 
Back
Top