ready4data
Programmer
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
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