Hi,
I have researched the use of DLookUp across the Internet and this forum and I am still struggling to get my query to work.
Firstly I have an Access 2007 database with 2 Tables:
-tblLvl
-ID (AutoNum)
-Levels (Text)
-NumValue (Num)
-tblData
-ID (AutoNum)
-DataColl1 (Text)
-DataColl2 (Text)
I also have a query which is where the problem is.
What I am trying to do is to run a Query for the fields DataColl1 and DataColl2 in the tblData table.
The fields DataColl1 and DataColl2 use a number and a letter pattern like "4c", "4b", "4a", "5c", "5b", "5a" etc...
In the tblLvl table there is a Levels field which contains all the possible combinations of the above, with a numerical value field called NumValue next to it.
What I want the query to do is to read the value selected in the DataColl1 field from tblData table and find the relevant NumValue from the tblLvl table based on a matching code in the Levels field of tblLvl.
I have created a query which contains 3 fields, DataColl1(tblData), DataColl2(tblData), both with no criteria, and the expression below in the 3rd field:
Code:
Expr1: DLookUp([NumValue],"tblLvl","DataColl1 = " & [tblLvl]![Levels])
When i run the query all i get back is the list of data from the first 2 fields, and the 3rd field is just blank.
Can anyone give me an idea of where I am going wrong?
I have attached the database zipped up to demonstrate what i am talking about 
Many thanks for all your help.
Karl