Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datagrid with DBNull

Status
Not open for further replies.

plopez

Technical User
Apr 2, 2002
66
CL
Hi,
I have populated a Datagrid with an Access Table and now I need to send this values to a text file .

When I use StreamWriter to populate the text file,I notice that some cells in the grid have DBNull values and they cannot be read as String ?????

What is the right way to do this ...?

I need to solve this problem to continue with my App. so I apreciate your help.
 
there is a isdbnull function

so

if isdbnull(field) then
write = ""
else
write = whatever
end if

Christiaan Baes
Belgium

"My new site" - Me
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top