K
kidkosmo
Hi gang,
I need some help with setting up some code to send out team member
reports. Here's the deal:
I've been using a form to select a single team member; ie Johnny
Test. I have one report named rptTeamMember which uses a query with
Forms!frmReports!txtTeamMember as the criteria along with a date range
also selected on the form. Then, an option to view or email the
report. The email address is stored in tblTeam under field name
Email. Of course, when you select email, that team member receives
their individual report (sendobject .snp).
Rather than having to do this for each individual, I'd rather set up
the form to select a date range and have a single command button that
will send out each team member's report with a single click (instead
of manually cycling through each team member on the form). I'm sure
this can be accomplished with a For...Next statement, but I really
suck at those. I've already made several attempts at that and the
first attempt ended up stuck in a loop. The second attempt resulted
in the whole team receiving each person's report (which we don't
want).
Any help would be sincerely appreciated.
Thanks!
I need some help with setting up some code to send out team member
reports. Here's the deal:
I've been using a form to select a single team member; ie Johnny
Test. I have one report named rptTeamMember which uses a query with
Forms!frmReports!txtTeamMember as the criteria along with a date range
also selected on the form. Then, an option to view or email the
report. The email address is stored in tblTeam under field name
Email. Of course, when you select email, that team member receives
their individual report (sendobject .snp).
Rather than having to do this for each individual, I'd rather set up
the form to select a date range and have a single command button that
will send out each team member's report with a single click (instead
of manually cycling through each team member on the form). I'm sure
this can be accomplished with a For...Next statement, but I really
suck at those. I've already made several attempts at that and the
first attempt ended up stuck in a loop. The second attempt resulted
in the whole team receiving each person's report (which we don't
want).
Any help would be sincerely appreciated.
Thanks!