C
Carlos
When my query runs, Access keeps on asking (via a message box) to provide a
value for a calculated field that I'm referencing within another calculated
field.
See below and let me know if anyone knows how to prevent this BESIDES
writing the whole calculation again in the second calculated field. What I'm
showing below is a VERY simplified version for illustration purposes.
COLUMN1 FORMULA
ORDER DATE: ENTRY_DATE_FOR_THIS_FORM
COLUMN2 FORMULA
DELIVERY DATE: IIF(DATE()-[ORDER DATE]<1,DATE()+30,DATE()+20)
When query runs, it prompts for "ORDER DATE". Now ORDER DATE is NOT defined
as a Parameter, so that's not it.
ORDER DATE is to the left of the DELIVERY DATE, ie, calculated first.
If I click OK on the message box without entering anything, the query runs
fine, but I don't want the user to be prompted for no reason causing
confusion.
Also, I know that if instead of using [ORDER DATE] inside the DELIVERY DATE
formula, I just type ENTRY_DATE_FOR_THIS_FORM, the issue is avoided.
However, as I mentioned before, this is an oversimplified example. The
formula in column 1 is long and complex. I can't paste it into every
instance where ORDER DATE is called within the formula in column 2.
How do I solve this?
value for a calculated field that I'm referencing within another calculated
field.
See below and let me know if anyone knows how to prevent this BESIDES
writing the whole calculation again in the second calculated field. What I'm
showing below is a VERY simplified version for illustration purposes.
COLUMN1 FORMULA
ORDER DATE: ENTRY_DATE_FOR_THIS_FORM
COLUMN2 FORMULA
DELIVERY DATE: IIF(DATE()-[ORDER DATE]<1,DATE()+30,DATE()+20)
When query runs, it prompts for "ORDER DATE". Now ORDER DATE is NOT defined
as a Parameter, so that's not it.
ORDER DATE is to the left of the DELIVERY DATE, ie, calculated first.
If I click OK on the message box without entering anything, the query runs
fine, but I don't want the user to be prompted for no reason causing
confusion.
Also, I know that if instead of using [ORDER DATE] inside the DELIVERY DATE
formula, I just type ENTRY_DATE_FOR_THIS_FORM, the issue is avoided.
However, as I mentioned before, this is an oversimplified example. The
formula in column 1 is long and complex. I can't paste it into every
instance where ORDER DATE is called within the formula in column 2.
How do I solve this?