I have a dlookup in a report that works perfectly. I would like to use it in a query, however I can't seem to get it to work. I keep getting the same error: "The expression you entered as a query parameter produced this error: Microsoft Access can't find the name '2007 Smart Buy!2007 Commitment' you entered in the expression." It doesn't make sense to me because that field is in my query.
This is my dlookup expression:
DLookUp("[Level Discounts]![A]","[Level Discounts]"," [2007 Smart Buy]![2007 Commitment] > [Level Discounts]![Minimum] And [2007 Smart Buy]![2007 Commitment] < [Level Discounts]![Maximum] ")
Any suggestions would be greatly appreciated.
Thank you!!
This is my dlookup expression:
DLookUp("[Level Discounts]![A]","[Level Discounts]"," [2007 Smart Buy]![2007 Commitment] > [Level Discounts]![Minimum] And [2007 Smart Buy]![2007 Commitment] < [Level Discounts]![Maximum] ")
Any suggestions would be greatly appreciated.
Thank you!!