Problem with Form which contains two Subforms

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AntonRSL2016
    New Member
    • Jan 2017
    • 13

    Problem with Form which contains two Subforms

    Good morning,

    I have the following structure:
    Form Frm_Production_ Main which has two Subforms
    SbFrm_Productio n_Sub_MLCD and
    SbFrm_Productio n_Sub_TB.
    These forms are linked to tables:
    Tbl_Production_ Main
    Tbl_Production_ Sub_MLCD
    Tbl_Production_ Sub_TB

    The Record Source for the Form is the following:
    Code:
    SELECT Tbl_Production_Main.*
         , Tbl_Production_Sub_TB.BC_ID
         , Tbl_Production_Sub_TB.Traceable_Batch
    FROM   Tbl_Production_Main
           INNER JOIN
           Tbl_Production_Sub_TB
      ON   Tbl_Production_Main.Batch_Card_ID=Tbl_Production_Sub_TB.BC_ID;
    I notice that Tbl_Production_ Sub_MLCD is not mentioned?!

    I built the form structure from a copy of previous structure that did not have subforms.

    My problem is that new records that I add currently are added to the tables, but cannot be displayed in the form after entry? I know I must have done something wrong but I am not sure what.

    Any advice would be much appreciated, thank you.

    Anton
    Last edited by NeoPa; Aug 18 '19, 05:36 PM. Reason: Tidied up SQL to make readable as well as added [CODE] tags that are required on this forum.
  • AntonRSL2016
    New Member
    • Jan 2017
    • 13

    #2
    It's ok, I've worked it out, there were entries missing in the sub table!

    Comment

    Working...