Results 1 to 11 of 11
  1. #1
    yrstruly is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2024
    Posts
    122

    Import-export permit tracking system

    Hi everyone,
    I'm working on optimizing an import-export permit tracking system and need some suggestions on improving document storage, data linking, and retrieval.
    Files: https://drive.google.com/file/d/1I5F...ew?usp=sharing
    �� Current Setup:


    • tblPermitInformation – Stores both import & export permits (permit number, authorization, shipment details, quarantine status).
    • tblDocumentStorage – Holds related permit documents (PDFs, invoices, phytosanitary certificates), linked by PermitID.
    • Forms & Queries – Used for permit tracking and data entry (frmImportRecords, frmTblPermitInformation).

    ✅ What I’ve Done So Far:


    • Core Tables Created:
      • tblPermitInformation (for all permits).
      • tblDocumentStorage (for storing related files).

    �� What’s Needed:

    1️⃣ Differentiate Import vs. Export Permits – Add a PermitType field.
    2️⃣ Link Imports to Exports – Create a tblImportExportLink table for batch tracking.
    3️⃣ Improve Document Retrieval – Use a VBA button to open files or a subform for multiple docs.
    4️⃣ Optimize Queries & Alerts – Ensure missing documents are flagged & track upcoming permit expirations.
    �� Export Process Issues:


    • No centralized system for storing export data.
    • No linkage between export documentation and import records.
    • No tracking of essential export details.

    �� Proposed Solutions:


    • Create a dedicated export management section in the database.
    • Make fields mandatory (Variety, Clone, Requestor, Permit No, Validity Date, Date Shipped, Destination Country, Material Type, Quantity).
    • Implement a document repository similar to import storage.

    �� New Feature: Import-Export Traceability




    • Automatically link records based on batch numbers or permit references.

    �� Import Document Storage Issues:


    • Lack of structured document categorization.
    • No link between import docs & other database records.

    Proposed Fix:

    • Implement structured document storage with:
      • Dedicated fields for permit documents (PDF/Word).
      • Dropdown selection for document types (DHL docs, Phytosanitary, Import Authorization, etc.).
      • Bulk document upload for multiple related permits.

    Would love to hear any insights on best practices for linking imports & exports, automating document retrieval, and optimizing tracking! Thanks in advance. ��

  2. #2
    jojowhite's Avatar
    jojowhite is online now Competent Performer
    Windows 11 Access 2021
    Join Date
    Jan 2025
    Posts
    432

  3. #3
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,550
    Now crossposted at https://www.access-programmers.co.uk.../#post-1954607

    Appears to be a serial crosposter?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  4. #4
    madpiet is offline Expert
    Windows 10 Office 365
    Join Date
    Feb 2023
    Posts
    564
    My two cents is that Access is the wrong back end database for this. Use SQL Server or some other data engine that can handle file storage. (basically takes over a chunk of the hard drive from the OS and manages it for itself). That way the only way you can add/remove/change files is through the database. Then just use Access as a front end.

  5. #5
    yrstruly is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2024
    Posts
    122
    Only the file details and location will be stored in a table. The file will be stored in Sharepoint.


    Quote Originally Posted by madpiet View Post
    My two cents is that Access is the wrong back end database for this. Use SQL Server or some other data engine that can handle file storage. (basically takes over a chunk of the hard drive from the OS and manages it for itself). That way the only way you can add/remove/change files is through the database. Then just use Access as a front end.

  6. #6
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,421
    I don't think it's enough to just report a cross post. If you want to have any chance that the OP will do it right next time, it needs to be explained.
    Cross Posting Message
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  7. #7
    yrstruly is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2024
    Posts
    122
    Steps I took to Link Document Storage to Permit Information in MS Access

    1. Created tblDocumentStorage Table


    • Since document details were missing, I created a new table tblDocumentStorage with columns:
      • DocumentID (AutoNumber, Primary Key)
      • PermitID (Number, Foreign Key)
      • FileName, FilePath, DocumentType
      • UploadDate, UploadedBy, Comments

    • Ensured PermitID references tblPermitInformation.PermitID for linking.

    2. Modified qryPermitInformation Query to Include Documents
    Code:
    SELECT tblPermitInformation.PlantID, Plants.Cultivar AS Variety, Plants.Clone, tblPermitInformation.PermitID, tblPermitInformation.Import_Requestor, tblPermitInformation.Permit_No, tblPermitInformation.Permit_appl_date, tblPermitInformation.Permit_valid_until, tblPermitInformation.Authorization_application_date, tblPermitInformation.Authorization_no, tblPermitInformation.Authorization_valid_until, tblPermitInformation.Date_shipped, tblPermitInformation.Arrival_date, tblPermitInformation.Export_country, tblPermitInformation.Material_type, tblPermitInformation.Quantity_of_material, tblPermitInformation.Import_comments, tblPermitInformation.FumigationStatus, tblPermitInformation.PermitAuthApprovedDate, tblPermitInformation.ExpectedReleaseDate, tblDocumentStorage.FileName, tblDocumentStorage.FilePath, tblDocumentStorage.DocumentType, tblDocumentStorage.UploadDate, tblDocumentStorage.UploadedBy, tblDocumentStorage.CommentsFROM (tblPermitInformation INNER JOIN Plants ON tblPermitInformation.PlantID = Plants.PlantID) LEFT JOIN tblDocumentStorage ON tblPermitInformation.PermitID = tblDocumentStorage.PermitID
    ORDER BY Nz(Plants.Cultivar, ''), Nz(Plants.Clone, '');
    • Previously, qryPermitInformation joined tblPermitInformation and Plants.
    • I updated the query to include tblDocumentStorage using a LEFT JOIN on PermitID,
    • Form frmCultivarPermitFileStore was never linked to a data source. It only imports files.
    • I connected qryPermitInformation as its data source and got the following message, which i clicked No:

    �� To complete this operation, Access must modify the RecordSource property of the current form or report.
    "Access will create a new query and embed it directly into the form’s or report’s RecordSource property. The form or report will no longer be based on the qryPermitInformation query."
    Do you want to accept this change?
    Yes | ❌ No



    • I could not load newly created document tables column on the form mentioned. Only when i unlinked the data source, i could.
    • What am i suppose to do in this regard?

  8. #8
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 11 Office 365
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,879
    Are you using a named query and trying to modify it in the form or in the named query itself?
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

  9. #9
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,818
    You should have a Main Form based on tblPermitInformation with a
    Subform based on tblDocumentStorage

    Linked on PermitID

  10. #10
    yrstruly is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2024
    Posts
    122
    frmCultivarePermiteFilestore is link by a button on frmPermitInformation which is linked to source query
    Code:
    SELECT tblPermitInformation.PlantID, Plants.Cultivar AS Variety, Plants.Clone, tblPermitInformation.PermitID, tblPermitInformation.Import_Requestor, tblPermitInformation.Permit_No, tblPermitInformation.Permit_appl_date, tblPermitInformation.Permit_valid_until, tblPermitInformation.Authorization_application_date, tblPermitInformation.Authorization_no, tblPermitInformation.Authorization_valid_until, tblPermitInformation.Date_shipped, tblPermitInformation.Arrival_date, tblPermitInformation.Export_country, tblPermitInformation.Material_type, tblPermitInformation.Quantity_of_material, tblPermitInformation.Import_commentsFROM (tblPermitInformation INNER JOIN Plants ON tblPermitInformation.PlantID = Plants.PlantID) LEFT JOIN tblDocumentStorage ON tblPermitInformation.PermitID = tblDocumentStorage.PermitID
    ORDER BY Plants.Cultivar, Plants.Clone;
    
    
     tblPermitInformation
    Plants
    tblDocumentStorage
    I brought in tblDocumentStorage because the documents for imports has no table to store its data and no linkage/id's.
    When i try to connect the tblDocumentStorage to the same query above i get the message as seen.
    frmCultivarepermit is holding location data or files and is not linked to a table yet. Because i made amendments, and would like to bring in new table with its columns, i can only do that from the Doument table and not with the amended query. Please see: https://drive.google.com/file/d/1hK9...ew?usp=sharing

    You can use Fn + F11 to open the objects and to view the forms, open in design view then in form view.. You'll see i made a copy of the original frmCultivarePermit and see the changes i would like to bring in.

  11. #11
    yrstruly is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2024
    Posts
    122
    I do, please see my ERD and current format in files.https://drive.google.com/file/d/1hK9...ew?usp=sharing
    Attached Files Attached Files
    Last edited by yrstruly; 02-27-2025 at 03:07 AM.

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

Similar Threads

  1. Replies: 3
    Last Post: 09-29-2021, 06:51 PM
  2. Replies: 5
    Last Post: 05-24-2018, 06:52 AM
  3. Permit to Work database
    By barryman in forum Database Design
    Replies: 1
    Last Post: 08-23-2012, 04:48 PM
  4. Replies: 1
    Last Post: 06-28-2012, 01:46 AM
  5. Cafeteria tracking system design
    By tsr_83 in forum Programming
    Replies: 2
    Last Post: 07-28-2010, 09:45 PM

Tags for this Thread

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