fransanchezoria
New member
- Local time
- Yesterday, 20:03
- Joined
- Jun 27, 2011
- Messages
- 7
Hi,
I have a Datediff field that calculates the diffrence in months between two dates. Now depending in this value, I want to assign a number. For example, if the range for difference in months is (stored in a table):
Diff Value
<12 1
12-36 2
>36 3
I would like to build a query that could do the following:
Start date End date Diff Value
01/01/2011 01/03/2011 2 1
01/05/2010 01/05/2011 12 2
...
And so on. The field Diff is an expression, the problem is that I don't know how to do the Vlookup for the field Value when it is based in the field Diff, which is an expression.
Your help is appreciated
Fran
I have a Datediff field that calculates the diffrence in months between two dates. Now depending in this value, I want to assign a number. For example, if the range for difference in months is (stored in a table):
Diff Value
<12 1
12-36 2
>36 3
I would like to build a query that could do the following:
Start date End date Diff Value
01/01/2011 01/03/2011 2 1
01/05/2010 01/05/2011 12 2
...
And so on. The field Diff is an expression, the problem is that I don't know how to do the Vlookup for the field Value when it is based in the field Diff, which is an expression.
Your help is appreciated
Fran