wingforward
Registered User.
- Local time
- Today, 13:44
- Joined
- Nov 24, 2009
- Messages
- 27
I have a subform that shows Email addresses. Email addresses have the option of being marked "Newsletter". Users can enter as many e-mail addresses per contact as they want, but only one can be selected as "Newsletter".
I'm trying to enforce this by using an event trigger on the field. I'm using VBA and DCount() to find the number of times that person has an e-mail addresses marked Newsletter.
Problem is DCount() doesn't return the correct number when using the before or after Update trigger. I think I need to commit the record somehow before grabbing the count, but don't know how to do that.
Access 2007.
Any help is appreciated.
Thanks,
David
I'm trying to enforce this by using an event trigger on the field. I'm using VBA and DCount() to find the number of times that person has an e-mail addresses marked Newsletter.
Problem is DCount() doesn't return the correct number when using the before or after Update trigger. I think I need to commit the record somehow before grabbing the count, but don't know how to do that.
Access 2007.
Any help is appreciated.
Thanks,
David