Results 1 to 4 of 4
  1. #1
    renovator is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    May 2016
    Posts
    7

    File management system

    Hi,
    I am helping a friend with a one man law firm and I am setting up a legal file management database to convert a hundred boxes of paper documents and electronic documents into one system.
    I want to automate as many steps as possible because he work endless hours.
    My first problem is how do I detect new files in huge list of directories from within Access

    The rough design is
    1 - create a table calls filed_docs
    file number auto generated primary key
    file name
    hyperlink
    creation date
    possible duplicate ( If file name is the same as another)
    original directory path
    last change date



    2. create table filed_docs_metadata - the file meta data which varies by file type
    3- create table filed_docs_tags which allows the user to enter multiple tags
    4. create table filed_docs_citations which scraps the file for citations
    5- scan all selected folders for word, pdf, html, ppt documents
    6- copy these files over to a new directory called added_to_the_database and update the above files if no match is found on file name, creation date, last change date
    7- check online for a file with the same name - sort of like how the link button works in word
    regards renovator

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,413
    My first problem is how do I detect new files in huge list of directories from within Access
    I would use the filesystem object - see this link for more information - it is for excel, but the same principle applies

    http://software-solutions-online.com...n-a-directory/

    Once you have the file object, you can look at the created/amended dates to identify new files

    you can create a function to scan through a directory, dropping down into subfolders, scanning through those, dropping down again etc

    Note that these searches are sequential (i.e. not indexed), so may take some if you have many folders/files, so as you find files and store the path in your db brake down into a couple of components such as path and filename to take advantage of indexing (putting a * in the front of a search e.g. ...like '*Name*' does not use indexing).

    If you consider the windows folders to be part of your db system and therefore subject to enforced naming conventions you can store files logically - e.g. perhaps something clientid_clientname_doctype_docversion, and organise the folders in a similar manner.

    Rather than storing name and hyperlink, consider using shellexecute to open a file

    ShellExecute(0, "Open", """" & DBPath & me.filename & """", vbNullString, vbNullString, 1)


    Alternatively, consider using sql server (/express) for the backend - it has functionality for managing files.

  3. #3
    redbull's Avatar
    redbull is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Mar 2012
    Location
    Missouri
    Posts
    480
    Quote Originally Posted by Ajax View Post

    you can create a function to scan through a directory, dropping down into subfolders, scanning through those, dropping down again etc
    Just a tip on this, the dos tree command would be a quick way of getting the directories folder structure, and files. Just run it in cmd.
    tree "c:\targetdirectory" > "c:\mydirectorytree.txt" /A /F

    Then use the fso to loop each line. The statement above might only show the directories... not the files, but if you look up the attributes of the tree command you can fix that.



    Parent directories will start with a "+"
    first sub directories will start with a "| +"
    second sub directories will start with a "| | +"

  4. #4
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I am helping a friend with a one man law firm and I am setting up a legal file management database
    I would strongly suggest not having the legal files on C drive.
    Having the legal files on a different drive will reduce the number of files that you will have to search.
    And backing up the legal files will be easier.

    Whether there is a 2nd physical hard drive in the desktop/tower or an external USB hard drive, not having the legal files on "C" drive is much safer (IMO).
    Its not a matter of IF the hard drive will fail, it is just WHEN the drive will fail! I forced my CPA to put tax return data/files on an external drive and did full backups daily.
    Sadly, he had 3 hard drive failures in a year and a half. But the backups saved him.....


    You do know the 3 rules of computing, right???
    Rule #1 is Back up
    rule #2 is Back up
    and Rule #3 is ..... Back up!!!

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

Similar Threads

  1. Student Management System ERD.
    By Altaful Haq in forum Database Design
    Replies: 1
    Last Post: 04-17-2014, 02:18 PM
  2. Basic Bridge Management System
    By daniel_l89 in forum Access
    Replies: 3
    Last Post: 09-05-2013, 11:47 AM
  3. Employees Database Management System
    By salsai in forum Database Design
    Replies: 3
    Last Post: 01-22-2012, 12:45 AM
  4. Time and Leave Management System
    By P5C768 in forum Database Design
    Replies: 0
    Last Post: 03-10-2011, 11:20 PM
  5. ATM Cash Management System
    By NexusMike in forum Access
    Replies: 1
    Last Post: 08-09-2010, 12:48 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