feathers212
Registered User.
- Local time
- Today, 09:37
- Joined
- Jan 3, 2007
- Messages
- 27
I have a table (All_Dyer_Belt_Transactions) that I am querying. In this table is the [Install_Date] for each the dyer belt location installation. In the query, I am attempting to create a [Remove_Date] field for each dryer belt; this field is should be equal to the next install date at the same press-dryer-fan-zone location (looking up the next record at the location). It took me forever to at least get the formula below to be accepted in my query. But now, the only thing that is displayed is a "#Error" message in each record. Any thoughts on what is wrong?
Code:
Remove_Date:
DLookup("[All_Dryer_Belt_Transactions]![Install_Date]", "All_Dyer_Belt_Transactions",
"[All_Dryer_Belt_Transactions]![Press] = [Press] AND
[All_Dryer_Belt_Transactions]![Dryer] = [Dryer] AND
[All_Dryer_Belt_Transactions]![Fan] = [Fan] AND
[All_Dryer_Belt_Transactions]![Zone] = [Zone] AND
[All_Dryer_Belt_Transactions]![Install_Date] = #" & DMin("[All_Dryer_Belt_Transactions]![Date]","All_Dyer_Belt_Transactions",
"[All_Dryer_Belt_Transactions]![Install_Date] > #" & [Install_Date] & "#") & "#")