- Local time
- Today, 13:52
- Joined
- Feb 28, 2001
- Messages
- 30,883
If you return the same row every time, there is something wrong with the table OR there is something wrong with the criteria of the DLookup. You must pick a criteria field in the DLookup that will let you find the area code you want. The value you are feeding has to correspond to the correct field in the table. But this statement needs clarification:
It is immaterial as to what is in "me.arcode" because that doesn't directly participate in the operation shown in post #15. You copy it but don't actually use it. What you really want is that [areacodetbl].[arcode] must exist as a valid field for the lookup. Then it must also occur that the record in the [areacodetbl] that has [arcode] of 512 has the correct value in [areacodetbl].[Region].
"arcode is a control on the form,"
It is immaterial as to what is in "me.arcode" because that doesn't directly participate in the operation shown in post #15. You copy it but don't actually use it. What you really want is that [areacodetbl].[arcode] must exist as a valid field for the lookup. Then it must also occur that the record in the [areacodetbl] that has [arcode] of 512 has the correct value in [areacodetbl].[Region].