###### Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

Deciding to stick with EE.

Mohamed Asif

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
###### Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

# Crystal Reports formlua to narrow scope current month + 2

Crystal ReportsEnterprise Software
My report shows open sales orders by month.  Currently it shows any sales orders in the system for any month no matter how far out it is.  Management is particularly interested in the value of open orders for the current month plus the next two months.  I haven't been able to narrow down this scope yet so that it can run automatically.  I know i could accomplish this with a parameter field but that isn't acceptable.  The report needs to dynamically changed based on current month.
``````if isnull({#January}) then '' else 'January = ' + CStr({#January},0) +
if isnull({#February})then '' else ' | February = ' + CStr({#February},0) +
if isnull({#March}) then '' else ' | March = ' + CStr({#March},0) +
if isnull({#April}) then '' else ' | April = ' + CStr({#April},0) +
if isnull({#May}) then '' else ' | May = ' + CStr({#May},0) +
if isnull({#June}) then '' else ' | June = ' + CStr({#June},0) +
if isnull({#July}) then '' else ' | July = ' + CStr({#July},0) +
if isnull({#August}) then '' else ' | August = ' + CStr({#August},0) +
if isnull({#September}) then '' else ' | September = ' + CStr({#September},0) +
if isnull({#October}) then '' else ' | October = ' + CStr({#October},0) +
if isnull({#November}) then '' else ' | November = ' + CStr({#November},0) +
if isnull({#December}) then '' else ' | December = ' + CStr({#December},0)
``````