Hi. I'm stepping through a record set from a database, such as in the following code:
But in my database some of the faxnumber fields are empty. This is causing the following error:Code:oRS.MoveFirst Do while NOT oRS.eof Dim fx as string fx = oRS("FaxNumber") oRS.MoveNext Loop oRS.Close
"Runtime error 94: Invalid use of null"
I tried putting an if statement like
but that didn't work, for the same reasons...Code:if oRS("FaxNumber") is NOT NULL then..
I don't know enough about VB to know how to handle this... seems this worked fine when I did it in ASP...
tx
d8




Reply With Quote