Re: How set default value



Hi,

this means that "nulls" will be replaced with the default value for that data type (e.g. 0 for numeric, "" for strings)

From crystal help

Convert Database NULL Values to Default
Select this check box to have the program convert null values from the database to a 0 (for numeric fields) or a blank (for non-numeric fields).

Note: This option affects only null values found in the database used for a report.

You cannot control what the "default" value will be. To do this you could use a function such as COALSCE in SQL Server to control what is returned from the database.


Kind regards

Rob



"clara" <clara@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:3195C6D0-FBC4-4090-9F6D-ECA2C4C2F5BE@xxxxxxxxxxxxxxxx
Hi all,

In the Default Settings Option dialog box and under the Reporting tab, there
is an option called "Convert Null to Default" . Does it mean a NULL can be
replaced by a preset value, if it is how it is done?

Clara
--
thank you so much for your help

.



Relevant Pages

  • Re: Global datasets
    ... Sticking with the first method again. ... Populate my DataSet from the Database ... Create another control object instance ... re-instantiating it. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: instant Lisp web application publishing
    ... flow of control (e,g. first log in the user, then show page x, than ... of Lisp if they want) ... flexible database that can be easily mapped into OOP terminology (so you ... Also I don't have a good candidate server to deploy it too. ...
    (comp.lang.lisp)
  • RE: 438 - Object doesnt support this property or method
    ... I created a new database and imported everything from the original. ... Missing is the Reference to the EzFTP control. ... Set con = Application.CurrentProject.Connection ...
    (microsoft.public.access.formscoding)
  • Re: Communication Log
    ... May I send you copy of the database that I made? ... a communication log in the database so that it will store the Date, ... ContactMethodID ... The above controls are set up in a page using te tab control. ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Communication Log
    ... May I send you copy of the database that I made? ... a communication log in the database so that it will store the Date, ... ContactMethodID ... The above controls are set up in a page using te tab control. ...
    (microsoft.public.access.tablesdbdesign)