wglmb
Registered User.
- Local time
- Today, 01:14
- Joined
- May 7, 2005
- Messages
- 21
I want to use a macro for validation on a field on a form.
I don't want users to be able to enter a company code that does not exist in the COMPANY Form.
The condition I've got is:
[Forms]![TXNS By Company DIAG]!
I don't want users to be able to enter a company code that does not exist in the COMPANY Form.
The condition I've got is:
[Forms]![TXNS By Company DIAG]!
Code:
<>[Forms]![COMPANY]![CODE]
The problem is that this only works if the COMPANY form is open, and then it only checks to see if you've entered the value in the record which is open, i.e. if the 1st record is open, the condition only checks to see if you've entered [i]that[/i] company code, but doesn't check it agains all the others.
So is there some way I can refer to [i]all[/i] entries in a field?