joshandsony
Registered User.
- Local time
- Today, 02:30
- Joined
- Feb 19, 2009
- Messages
- 59
I am trying to build a column within a query with a dlookup and can't seem to get it right. Here is how it is set up:
Expedite Report Raw table has field PO Date - I need to format the date within this field on another field in query Expedite Report Raw. So what I did is create another table called Decoder. Here is an example of my decoder:
1/1/2007 needs to return a result of 2007
12/31/2007 needs to return a result of 2007
1/1/2008 needs to return a result of 2008
12/31/2008 needs to return a result of 2008
1/1/2009 needs to return a result of Jan-09
and so on.....
I am trying to create the dlookup by pointing to my decode field in the decoder table, then anything in PO date that has a date range of my decoder table needs to return the result of the decode field.
I can't seem to get this to work and I need it to create my pivot table. Can someone help me please!
Expedite Report Raw table has field PO Date - I need to format the date within this field on another field in query Expedite Report Raw. So what I did is create another table called Decoder. Here is an example of my decoder:
1/1/2007 needs to return a result of 2007
12/31/2007 needs to return a result of 2007
1/1/2008 needs to return a result of 2008
12/31/2008 needs to return a result of 2008
1/1/2009 needs to return a result of Jan-09
and so on.....
I am trying to create the dlookup by pointing to my decode field in the decoder table, then anything in PO date that has a date range of my decoder table needs to return the result of the decode field.
I can't seem to get this to work and I need it to create my pivot table. Can someone help me please!