MJ_Wilkinson
Registered User.
- Local time
- Today, 03:32
- Joined
- Apr 26, 2017
- Messages
- 15
Hi all,
I have a report that is grouped on a group code (separated to one page per group), and have a piece of code set up below that exports the whole report into my desired location, listed in TBL_FILELOC.
What can I add to this to export each groups statement report into its individual folder? I have set up these folders on my desktop, and have created a table TBL_EXPORTLINK that has a column listing these locations for each group, along with that groups group code.
I'm not that skilled on VBA at the minute so clearly need to watch YouTube videos if I can't do something like this which is probably quite simple!
Would appreciate any help you guys can offer.
Thanks
I have a report that is grouped on a group code (separated to one page per group), and have a piece of code set up below that exports the whole report into my desired location, listed in TBL_FILELOC.
Code:
Private Sub CommA_Click()
Dim FTP As String
EXP = DLookup("[FileLocation]", "Tbl_FILELOC", "[LocId]='L03'")
Dim strPathAndFile As String
strPathAndFile = "" & EXP & "" & "All Group Statements- Q1 2017.pdf"
DoCmd.OutputTo acOutputReport, "Rep_Grps", acFormatPDF, strPathAndFile
End Sub
What can I add to this to export each groups statement report into its individual folder? I have set up these folders on my desktop, and have created a table TBL_EXPORTLINK that has a column listing these locations for each group, along with that groups group code.
I'm not that skilled on VBA at the minute so clearly need to watch YouTube videos if I can't do something like this which is probably quite simple!
Would appreciate any help you guys can offer.
Thanks