I have 2 tables: "Letter_to_Insurer" and "Policy_OP" and query based on the "Letter_to_Insurer". I need to have one field in this query, which to find the policy number of concrete truck in the concrete time interval. I tried DLookup (in query and in the form:
PolicyNoLookUp("[Policy]";"Policy_OP";"[Truck1]=[Truck]" And "[Event_Date]>=[From]" And "[Event_Date]<=[To]")
Where fields [Policy], [From], [To] and [Truck] belong to "Policy_OP" but [Truck1] and [Event_Date] - ro "Letter_to_Insurer".
The result is not correct. Because I am not qualified enough I can't cope with this task. Please help me!
Sanasta
PolicyNoLookUp("[Policy]";"Policy_OP";"[Truck1]=[Truck]" And "[Event_Date]>=[From]" And "[Event_Date]<=[To]")
Where fields [Policy], [From], [To] and [Truck] belong to "Policy_OP" but [Truck1] and [Event_Date] - ro "Letter_to_Insurer".
The result is not correct. Because I am not qualified enough I can't cope with this task. Please help me!
Sanasta