Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formula problems

Status
Not open for further replies.

ready4data

Programmer
Apr 9, 2001
18
US
Why doesn't this formula work? It used to with the old version of Sales Logix.
If I take out the HISTORY.ACCOUNTNAME section the report works.
We are using SQL server and switched to an OLE DB connection for Crystal reports rather than the ODBC connection we had with the old Sales Logix.

(if {?Region} <> "All"
then{USERINFO.TITLE} = {?Region}
else if {?Region} = "All" or {?Region} = '""'
then True) and
{USERINFO.USERNAME}<>"" and
{USERINFO.USERNAME}<> "Administrator" and
(if {?User Name} <> "All"
then{HISTORY.USERNAME} = {?User Name}
else if {?User Name} = "All" or {?User Name} = '""'
then True) and
{HISTORY.STARTDATE} = {?Date Range} and
(if {?Brand} <> "All"
then{DEALER_PROFILE.ASSOCIATION} = {?Brand}
else if {?Brand} = "All" or {?Brand} = '""'
then True) and
(if {?Wildcard Dealer} <> '""'
then {HISTORY.ACCOUNTNAME} like "*" + {?Wildcard Dealer} + "*"
else if {?Wildcard Dealer} = '""'
Then True)
Open to ideas
Scott
 
Dear ready4data,

When you say it doesn't work ... what does that mean?

Does it error?
Does it return different data?

It would also help to know the version of Crsytal.

It would also be helpful to know what the Database/Show SQL query states in the original and in this one.

What is different?

Regards,

ro

Rosemary Lieberman
rosemary@microflo.com, Microflo provides expert consulting on MagicTSD and Crystal Reports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top