I have a table called tblBoxRsum with fields LeagueID,BoxID, LowerRsum and UpperRsum.
In a query I have the fields EntryID,LeagueI D and Rank
I want a Dlookup to find which BoxID the entry is in dependant on the LeagueID & Rank. All fields are numeric.
I have the following
This does not work. If I omit the LeagueID criteria it allocates correctly according to rank but obviously takes no notice of league duplicating boxIDs for entries.
Any help appreciated. Many thanks
In a query I have the fields EntryID,LeagueI D and Rank
I want a Dlookup to find which BoxID the entry is in dependant on the LeagueID & Rank. All fields are numeric.
I have the following
Code:
BoxID: Nz(DLookUp("BoxID","tblBoxRsum","LeagueID="&[LeagueID] And "" & [Rank] & " Between LowerRSum And UpperRSum"),"")
Any help appreciated. Many thanks
Comment