By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,145 Members | 1,694 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,145 IT Pros & Developers. It's quick & easy.

Select Agent Email Address & Send Filtered Report

P: 2
I have a table containing "AgentName" and "AgentEmailAddresss".

I need to loop through the table and get each "AgentEmailAddress" in turn and use it as a query filter for "MyQuery" then use it to email the relevant filtered query results to each agent.

I know its simple to experts but I am stuck, can anyone please help me with sample code for the retrieve email address and filter query part?

I am using Access 2003
Dec 18 '07 #1
Share this Question
Share on Google+
2 Replies


Jim Doherty
Expert 100+
P: 897
I have a table containing "AgentName" and "AgentEmailAddresss".

I need to loop through the table and get each "AgentEmailAddress" in turn and use it as a query filter for "MyQuery" then use it to email the relevant filtered query results to each agent.

I know its simple to experts but I am stuck, can anyone please help me with sample code for the retrieve email address and filter query part?

I am using Access 2003
For a sample of something of the type you speak about although not specific to you have a look at this thread and sample db I posted for another poster see the code behind it to give you a few ideas

http://www.thescripts.com/forum/thread744673.html

Regards

Jim
Dec 19 '07 #2

P: 2
For a sample of something of the type you speak about although not specific to you have a look at this thread and sample db I posted for another poster see the code behind it to give you a few ideas

http://www.thescripts.com/forum/thread744673.html

Regards

Jim
Thank you Jim, I'll have a look at this.

Nigel
Dec 20 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.