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

    Subform Displaying Not Displaying

    I'm working with a main form (FrmLicence) that displays licensing information from multiple joined tables (e.g., TblLicence, Plants, Profile). I created a subform (FrmLicenceTblPBRVLInfo) to capture additional PBR/VL info related to each license, using a LicenceID field as the link.


    The subform is embedded in the main form using Link Master Fields = Id and Link Child Fields = LicenceID. However, I keep getting an “Enter Parameter Value” prompt and sometimes a run-time error related to ActiveX/OLE or missing fields.
    Both fields exist, and the forms open fine separately. I'm trying to make sure the subform is editable and correctly linked so it only shows or allows input for the related license. What am I missing?

    Main Forms Query
    Code:
    SELECT DISTINCTROW TblLicence.Id, TblLicence.PlantID, Plants.Cultivar, TblLicence.Nr, Profile.Display, TblLicence.ConType, TblLicence.LicHolder, TblLicence.ConExpireDate, TblLicence.Renewable, TblLicence.Breeder, TblLicence.Upfront, TblLicence.Royalty, TblLicence.MonthPay, TblLicence.Importer, TblLicence.Comment, TblLicence.NextPeriod, TblLicence.PlantBreederRights, TblLicence.PbrExpireDate, TblLicence.Origin, TblLicence.FirstCom, TblLicence.PbrGrantNo, TblLicence.Trademark, TblLicence.FirstComPlace, TblLicence.Supplier, TblLicence.ConSignDate, TblLicence.RenewableDate, TblLicence.PBROwner, TblPlantsPrices.Royalty, TblPlantsPrices.Levy
    FROM ((TblLicence INNER JOIN Profile ON TblLicence.Nr = Profile.Nr) INNER JOIN Plants ON TblLicence.PlantID = Plants.PlantID) LEFT JOIN TblPlantsPrices ON TblLicence.PlantID = TblPlantsPrices.PlantID;


    Code:
    CREATE TABLE TblLicence (
        Id AUTOINCREMENT PRIMARY KEY,
        PlantID TEXT,
        Nr TEXT,
        s_GUID AUTOINCREMENT,
        ConType NUMBER,
        LicHolder YESNO,
        ConExpireDate DATETIME,
        ConSignDate DATETIME,
        Renewable YESNO,
        Breeder TEXT,
        Upfront TEXT
    );
    ,
    Code:
    CREATE TABLE TblPBRVLInfo_Clean (
        PBRVLID AUTOINCREMENT PRIMARY KEY,
        LicenceID NUMBER,
        VL_ApplicationNo TEXT,
        VL_ApplicationDate DATETIME,
        VL_GrantApprovalNo TEXT,
        VL_GrantApprovalDate DATETIME,
        PBR_ApplicationNo TEXT,
        PBR_ApplicationDate DATETIME,
        PBR_GrantNo TEXT,
        PBR_GrantApprovalDate DATETIME,
        PBR_GrantExpiryDate DATETIME,
        PBR_EndOfSoleRight DATETIME,
        PBR_AnnualRenewalDuty_SAF CURRENCY
    );


  2. #2
    jojowhite's Avatar
    jojowhite is offline Competent Performer
    Windows 11 Access 2021
    Join Date
    Jan 2025
    Posts
    434
    without the form/subform it is hard to troubleshoot.

  3. #3
    yrstruly is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2024
    Posts
    122
    Not being able to upload files to this forum is a nightmare, and you guys dont want to download from links.

  4. #4
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 11 Office 365
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,879
    Why can't you upload to the forum?
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

  5. #5
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,821
    I think it is down to table structures.

    I would imaging that 1 Licence belongs with each Plant and each Plant has a specific Price which would change on a regular basis.

    You then want to enter specific Notes regarding the Licence.

    You need the following:-

    tblLicence
    -LicenceID - Autonumber PK
    -LicenceNumber

    tblPlants
    -PlantID - Autonumber PK
    -LicenceID - Number - LongInteger FK (linked to PK from tblLicence)
    -LicenceNumber

    tblPlantPrices
    -PlantPriceID - Autonumer PK
    -PlantID - Number - LongInteger FK (Linked to PrimaryKey in tblPlants)
    -PlantPrice
    -DateFrom
    -DateTo

    tblLicenceNotes
    -LicenceNoteID - Autonumber PK
    -LicenceID - Number LongInteger - FK (Linked to Pk from tblLicence)
    -Notes

  6. #6
    davegri's Avatar
    davegri is offline Excess Access
    Windows 11 Access 2021
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,741
    Not being able to upload files to this forum is a nightmare, and you guys dont want to download from links.
    I've uploaded (and even replaced) literally hundreds of files to the forum without losing a wink of sleep. Just learn the process.

  7. #7
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,935
    Quote Originally Posted by yrstruly View Post
    Not being able to upload files to this forum is a nightmare, and you guys dont want to download from links.
    I told you how in post #4 on this thread yesterday.

  8. #8
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,821

  9. #9
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    The thread at that link should be locked and some of the posts removed (like comments, problems, suggested solutions, etc.). It should just be a tutorial and nothing else.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Replies: 12
    Last Post: 10-13-2024, 08:56 AM
  2. Replies: 10
    Last Post: 12-16-2022, 07:29 AM
  3. Replies: 1
    Last Post: 03-14-2017, 05:20 PM
  4. Replies: 4
    Last Post: 10-22-2010, 10:40 AM
  5. Replies: 0
    Last Post: 03-31-2010, 07:52 AM

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