Forum Replies Created

Viewing 15 posts - 286 through 300 (of 541 total)

  • RE: Add Report Permissions?

    I added a new role 'Add Reports' with tasks 'Manage Reports' + 'Manage Folders'.

    I then created folder 'Report Builder' added a New Role Assignment.

    If anyone has a view on...

  • RE: SET value WHERE Product has > 2 Suppliers

    Thanks Guys.

    HAVING COUNT(1) > 1 appears to be correct (returned 106 rows), HAVING COUNT(1) > 2 returned 0.

    Great Work,

    Phil.

  • RE: SET value WHERE Product has > 2 Suppliers

    Just a thought......after the update is there a way to filter WHERE Products appear more than once + WHERE the DateLatQuoted match AND SequenceNumber = 500.

    On the 'Live' data 3000...

  • RE: SET value WHERE Product has > 2 Suppliers

    Thanks NULL. Excuse the error in my script (lack of INSERT INTO......I deleted in error!).

    Many Thanks,

    Phil.

  • RE: CASE ISNULL

    Good work guys. Chris your code worked a treat.

    Many thanks to all those who posted I appreciate your efforts.

    Kind Regards,

    Phil.

  • RE: CASE ISNULL

    Thanks Richard.

    Phil.

  • RE: CASE ISNULL

    Hi Chris, yes the same values. The query is for a report. Currently the report returns a blank for NULL's, I thought it would look better if it displayed 0.00.

    Many...

  • RE: CASE ISNULL

    Guys my code now looks as follows:

    WITH BidReport AS

    (

    SELECT

    so.SalesOrderId AS BidNumber,

    u.FirstName AS FirstName,

    u.LastName AS LastName,

    so.EffectiveDate AS Date,

    c.CustomerName AS Customer,

    Countries.CountryId AS DestinationSite,

    soi.ItemDescription,CVOption.CustomFieldValueBit AS 'SystemOption',

    CVWinProb.CustomFieldValueInteger...

  • RE: Expression Syntax

    Thanks guys.

    Phil.

  • RE: CASE ISNULL

    Chris my code runs without error? What can I do to help? Let me explain further. The user may enter multiple custom fields on the app screens (SalesOrders / SalesOrderDetails...

  • RE: Expression Syntax

    Hi Bob. I looked at this from a different angle and decided to modify the query rather than format in the report using visual studio. I then posted to the...

  • RE: CASE ISNULL

    Yes. The app allows users to create custom fields that are then stored in tables CustomFields, CustomValues. The Order Header (SalesOrders) has a custom field 'WinProb', the Order Detail (SalesOrderDetails)...

  • RE: CASE ISNULL

    Hi guys. I just had a play changing the joins. It did make a difference. Changing to

    LEFT JOIN CustomValues AS CVOption

    LEFT JOIN CustomFields AS CFOption ON CVOption.CustomField = CFOption.CustomField

    AND CFOption.CustomFieldId...

  • RE: CASE ISNULL

    Code as requested.

    SELECT

    so.SalesOrderId AS BidNumber,

    u.FirstName,

    u.LastName,

    so.EffectiveDate AS Date,

    c.CustomerName AS Customer,

    Countries.CountryId AS DestinationSite,

    soi.ItemDescription,CVOption.CustomFieldValueBit AS 'SystemOption',

    (SELECT SUM(isnull(soi.ItemValue,0))

    WHERE CVOption.CustomFieldValueBit = 0) AS 'QuoteValue',

    CVWinProb.CustomFieldValueInteger AS WinProbability,...

  • RE: CASE ISNULL

    Hi, I tried:

    (SELECT SUM(isnull(soi.ItemValue,0))

    WHERE CVOption.CustomFieldValueBit = 0) AS 'QuoteValue',

    CVWinProb.CustomFieldValueInteger AS WinProbability,

    QuoteValue still returns NULL?

    Basically what I am trying to do is sum the ItemValue where a field 'Option'...

Viewing 15 posts - 286 through 300 (of 541 total)