dragonflydei
New member
- Local time
- Today, 08:29
- Joined
- Apr 28, 2011
- Messages
- 2
Hello all. I did not see a similar topic posted, but I have a bit of a tough query I am trying to figure out. I have a list of say customer visits, and they may have visited one of 7 store sites on any particular visit. I want to know for that customer what their last visit date was for that same store. For example, I go to FL store on Jan 1, 2011; my next visit is GA store in February 2011; In April 2011 I visit the FL store again. I want to create a query that gives me the April visit information, and a field called last visit, and pull the last FL visit date from the prior record for that state store. This is an extremely simplified version of what I need but I hope that you get the idea. I know the field, I have a way of tying the customers together, I just cannot figure out the code to have it return the next to last visit at that store. (Last returns me the visit data from the same record I am looking at). I have the feeling when I see the solution, I will feel silly for not getting it, but I have a mental block. Any thoughts?