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

    Permit ID is Static

    I want permit ID to be a drop down and the user to be able to slect from that selection or even fill in a Permit ID.

    See settings: https://drive.google.com/file/d/1ijr...ew?usp=sharing



    Code:
    SELECT DISTINCT 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 tblExportInformation ON tblPermitInformation.PermitID = tblExportInformation.PermitID) INNER JOIN tblDocumentStorage ON tblPermitInformation.PermitID = tblDocumentStorage.PermitID
    ORDER BY Plants.Cultivar, Plants.Clone;

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,555
    I generally have the ID field as field 1 in the source and the description as field 2?
    Makes it easier setting columns visible.
    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

  3. #3
    yrstruly is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2024
    Posts
    122
    PermitID is an auto number. Reading from the PermitInformtion table

  4. #4
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    Quote Originally Posted by yrstruly View Post
    PermitID is an auto number. Reading from the PermitInformtion table
    Is that the only column that you want/need?
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  5. #5
    yrstruly is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2024
    Posts
    122
    Please see my Data Model. Advice if a seperate import table is needed?
    Data Model: https://drive.google.com/file/d/1ijr...ew?usp=sharing
    Key Difference Between the Two Forms

    1. Database Structure Differences

      • The Export Form is based on tblExportInformation, which has a Number field (PermitID) that references tblPermitInformation.PermitID.
      • The Import Form works directly on tblPermitInformation, where PermitID is an AutoNumber field.

    2. Behavior of AutoNumber Fields

      • In tblPermitInformation, PermitID is AutoNumber and is system-generated.
      • AutoNumber fields cannot be manually entered or selected via a combo box.
      • In contrast, tblExportInformation.PermitID is a Number field, which allows users to select an existing PermitID.

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

Similar Threads

  1. Import-export permit tracking system
    By yrstruly in forum Forms
    Replies: 10
    Last Post: 02-26-2025, 04:36 PM
  2. Replies: 3
    Last Post: 09-29-2021, 06:51 PM
  3. Replies: 5
    Last Post: 05-24-2018, 06:52 AM
  4. Permit to Work database
    By barryman in forum Database Design
    Replies: 1
    Last Post: 08-23-2012, 04:48 PM
  5. Replies: 3
    Last Post: 02-01-2010, 08:26 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