S
Steven Craig Basham
Hello!
I'm trying to use the calculations done in one field of a query into
another field in the query using the EXPR name I've assigned and referencing
that in the next field instead of the actual calculation.
The reason I needed to do this was because I'm running over my character
limit for the next field.
Can I do this? If not, any suggestions on a workaround... here's my two
fields for the query...
FIELD 1:
Days: DateDiff("d",[hire date],DLookUp("[payperiod]","PayPeriod","ppid =" &
[PPID:]))
FIELD 2:
Earned: IIf(([days] > 0 and [days] < 14 ),[days]/14*4.308,0)
..... this one is actually much longer because it calculates earned for up to
10 years... the [days] I was hoping to use as an alias for the
aforementioned field 1 expression.
Thanks for the advice...!
Steve
I'm trying to use the calculations done in one field of a query into
another field in the query using the EXPR name I've assigned and referencing
that in the next field instead of the actual calculation.
The reason I needed to do this was because I'm running over my character
limit for the next field.
Can I do this? If not, any suggestions on a workaround... here's my two
fields for the query...
FIELD 1:
Days: DateDiff("d",[hire date],DLookUp("[payperiod]","PayPeriod","ppid =" &
[PPID:]))
FIELD 2:
Earned: IIf(([days] > 0 and [days] < 14 ),[days]/14*4.308,0)
..... this one is actually much longer because it calculates earned for up to
10 years... the [days] I was hoping to use as an alias for the
aforementioned field 1 expression.
Thanks for the advice...!
Steve