There are 2 things here:
- A integer field in the database can contain nulls, but the Integer type of
the .NET Framework is not nullable. In this case you must create a nullable
type (search Google for some implementations) or to use the Integer value
with a special value to denote null (and zero may not be the best option,
since it can be a valid value depending on your domain)
- You need to convert "0" to "" in your reports. For this you need a
conversion routine, for example i.ToString("#")
--
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
"Roy" <Ro*@discussions.microsoft.com> escribió en el mensaje
news:95**********************************@microsof t.com...
Marcie,
In a report I need to replace a value of integer column from zero to
blank.
Any suggestions?
"Marcie Jones" wrote: