Results 1 to 2 of 2

Thread: Business Objects

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2002
    Location
    singapore
    Posts
    3

    Question Business Objects

    hi,
    i need some help from people who know about business objects but this not really concerns about VB. i have this formula statement : = If (IsNull(Sum(<Amount (S$) (Lic) (CurrentFY)> Where(<Licence type key (Lic)> = "FA")))) Then 0 Else Sum(<Amount (S$) (Lic)> Where(<Licence type key (Lic)> = "FA"))

    this statement will O if is null. What i want to display is a "-" <-- a dash instead of 0. But i faced problem in doin this.

    if i put :
    If (IsNull(Sum(<Amount (S$) (Lic) (CurrentFY)> Where(<Licence type key (Lic)> = "FA")))) Then "-" Else Sum(<Amount (S$) (Lic)> Where(<Licence type key (Lic)> = "FA"))
    It will prompt me "incorrect data type"

    if i put :
    If (IsNull(Sum(<Amount (S$) (Lic) (CurrentFY)> Where(<Licence type key (Lic)> = "FA")))) Then - Else Sum(<Amount (S$) (Lic)> Where(<Licence type key (Lic)> = "FA"))
    It will prompt me "syntax error"

    can anyone help me with this? thanks a lot!

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    What is this in or for or whatever? Try:
    IIF(If (IsNull(Sum(<Amount (S$) (Lic) (CurrentFY)> Where(<Licence type key (Lic)> = "FA")))) Then 0 Else Sum(<Amount (S$) (Lic)> Where(<Licence type key (Lic)> = "FA"))=0,"-",If (IsNull(Sum(<Amount (S$) (Lic) (CurrentFY)> Where(<Licence type key (Lic)> = "FA")))) Then 0 Else Sum(<Amount (S$) (Lic)> Where(<Licence type key (Lic)> = "FA")))

    But it seems that whatever is using this statement is looking to get an integer back and you are trying to switch it to a string which is what it doesn't like. The problem should be fixed there.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width