Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228

    Document managment

    The system I currently have will be used to produce a lot of reports. we have about 4-500 jobs at the moment. Each needing 4 different reports at different stages of work.



    Right now I'm using a combination of excel and word to mail merge groups of files and then manually put them in the right folders on our drive.

    Is it possible in access to have a "file structure" that's recognised and used by the software?

    Has anyone else had to do something similar? What solutions did you find?

    Andy.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    I used access to run daily reports.
    The form showed, A list of reports ,
    a list of departments.
    code would scan both lists, produce PDF of each rpt for that dept for that day/week.
    this file would save to the REPORTS folder, then Dept folder, then date ...ala
    Production-ASSY-Day150730.pdf

  3. #3
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    I don't suppose you have that code available for me? It might not be suitable but I'm sure it will give me a better idea of what I'm attempting to do.
    Andy.

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    In the form, the code get the report, vRpt, from lstRpts
    and the vDept from the lstDepts

    Code:
    Public Sub ReportOutput()
    Dim vDate, vRpt, vDept, vDir, vTargDir, vType, vFile, vRptName
    Dim r, d
    
    vDate = Format(Date, "yymmdd")
    vType = cboRptType          'weekly, daily, monthly
    vDir = DLookup("[RptDir]", "tConfig")  'lookup report folder to print to
    
    For r = 1 To lstRpts
       vRpt = lstRpts(r).ItemData   'get next rpt
       
       For d = 1 To lstDepts
          vDept = lstDepts(d).ItemData   'get next dept
          vTargDir = vDir & vDept & "\"
          MakeDir vTargDir    'ignores if exists
          
          vRptName = vRpt & "-" & vDept & "-" & vType & vDate & ".pdf"
          vFile = vTargDir & vRptName
          
          DoCmd.OutputTo acOutputReport, vRpt, acFormatPDF, vFile
       Next
    Next
    End Sub
    
    Public Sub MakeDir(ByVal pvDir)
    Dim fso
    Set fso = CreateObject("Scripting.FileSystemObject")
    If Not fso.FolderExists(pvDir) Then fso.CreateFolder pvDir     'MkDir pvDir
    
    
    Set fso = Nothing
    End Sub

  5. #5
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    Thanks Ranman

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 5
    Last Post: 01-23-2014, 09:36 AM
  2. Stock Managment Database Design
    By chuki2 in forum Database Design
    Replies: 4
    Last Post: 12-22-2011, 11:36 PM
  3. Property Managment Form
    By JennyHunt in forum Forms
    Replies: 0
    Last Post: 03-02-2011, 08:30 AM
  4. Vessel managment database
    By elviscenko in forum Database Design
    Replies: 1
    Last Post: 03-13-2010, 08:52 PM
  5. Document Database
    By Wrangler in forum Access
    Replies: 2
    Last Post: 01-22-2010, 11:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums