P
Piperlynne
I am trying to place a condition in a macro that runs reports based on data
input into a form. There are 6 criteria on the form. I am attempting to write
an IsNull statement so that if the user inputs no data, the report filters by
"ALL" aka no seletion criteria - all records returned. It keeps truncating my
statement.
IsNull([Forms]![frmReports]![ProfCdSrch]) And
IsNull([Forms]![frmReports]![CustSrch]) And
IsNull([Forms]![frmReports]![BrandSrch]) And
IsNull([Forms]![frmReports]![SKUSrch]) And
IsNull([Forms]![frmReports]![ProductSrch]) And
IsNull([Forms]![frmReports]![StatusSrch])
this would open the qryReportALL make table query, I would also be writing
statements for each variation of these 6 fields being populated in the form.
Then outputting the report data based on the table that is created.
Since this seems too long. .anyone have a work around or solution to get
this to work?
input into a form. There are 6 criteria on the form. I am attempting to write
an IsNull statement so that if the user inputs no data, the report filters by
"ALL" aka no seletion criteria - all records returned. It keeps truncating my
statement.
IsNull([Forms]![frmReports]![ProfCdSrch]) And
IsNull([Forms]![frmReports]![CustSrch]) And
IsNull([Forms]![frmReports]![BrandSrch]) And
IsNull([Forms]![frmReports]![SKUSrch]) And
IsNull([Forms]![frmReports]![ProductSrch]) And
IsNull([Forms]![frmReports]![StatusSrch])
this would open the qryReportALL make table query, I would also be writing
statements for each variation of these 6 fields being populated in the form.
Then outputting the report data based on the table that is created.
Since this seems too long. .anyone have a work around or solution to get
this to work?