Hello
I am passing two parameters to an Access Query from a Crystal Report. Parameter_A will tell the query to use invoices dated CURRENT DATE if Parameter_A = 1 (1 being a number, not text, parameter type) .
If Parameter_A is not 1, then it will ignore Parameter A and utilize the date in Parameter_B (a date type parameter).
I have already created the PARAMETERS in the Query, naming them the exact same as in the Cyrstal Report that will be using the query.
I know I need to BUILD an Expression in the CRITERIA of the Invoice_Date Field in my query. This is where I need help. Building this expression.
In Crystal reports, the formula would look like this:
if {?Parameter_A} = 1
then {Invoice_Date} = currentdate
else
{Invoice_Date} = {?Parameter_B}
What would the Access Expression be?
Thanks in advance.
Regards,
Mark H. Edwards
I am passing two parameters to an Access Query from a Crystal Report. Parameter_A will tell the query to use invoices dated CURRENT DATE if Parameter_A = 1 (1 being a number, not text, parameter type) .
If Parameter_A is not 1, then it will ignore Parameter A and utilize the date in Parameter_B (a date type parameter).
I have already created the PARAMETERS in the Query, naming them the exact same as in the Cyrstal Report that will be using the query.
I know I need to BUILD an Expression in the CRITERIA of the Invoice_Date Field in my query. This is where I need help. Building this expression.
In Crystal reports, the formula would look like this:
if {?Parameter_A} = 1
then {Invoice_Date} = currentdate
else
{Invoice_Date} = {?Parameter_B}
What would the Access Expression be?
Thanks in advance.
Regards,
Mark H. Edwards