Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Data Linking between Forms

Discussion in 'Information Technology' started by Tdahlman, Jul 28, 2006.

  1. Tdahlman

    Tdahlman
    Expand Collapse
    Guest

    I have a form called [frm_NewQuote] where I enter certain data. upon entering
    this data it automatically assigns a Unique Identifier called [OrderInfoID].
    Then when I finish filling out the entries I want to hit a command button
    [Command99]. I want this to automatically open a different form
    [frm_QuoteDetails]. When it opens this form I want [OrderInfoID] from
    [frmNewQuote] to automatically update into [OrderInfoID] from
    [frm_QuoteDetails].

    I've tried using the wizard with the command button but the link doesn't
    work.
    I'm terrible at Coding so could you please write out exactly what my code
    should look like based on the names I've given above. If you need more names
    then what is there then please let me know so I can give them too you. I've
    been stuck on this for 3 days and I'm out of ideas and not knowledgable
    enough to know how to fix my code.

    Thank you in advance.
    Travis
     
  2. Loading...


  3. John Vinson

    John Vinson
    Expand Collapse
    Guest

    On Wed, 26 Jul 2006 10:24:02 -0700, Tdahlman
    <Tdahlman@discussions.microsoft.com> wrote:

    >I have a form called [frm_NewQuote] where I enter certain data. upon entering
    >this data it automatically assigns a Unique Identifier called [OrderInfoID].
    >Then when I finish filling out the entries I want to hit a command button
    >[Command99]. I want this to automatically open a different form
    >[frm_QuoteDetails]. When it opens this form I want [OrderInfoID] from
    >[frmNewQuote] to automatically update into [OrderInfoID] from
    >[frm_QuoteDetails].
    >
    >I've tried using the wizard with the command button but the link doesn't
    >work.
    >I'm terrible at Coding so could you please write out exactly what my code
    >should look like based on the names I've given above. If you need more names
    >then what is there then please let me know so I can give them too you. I've
    >been stuck on this for 3 days and I'm out of ideas and not knowledgable
    >enough to know how to fix my code.


    If you want to avoid coding completely, and have the link maintained
    automatically and easily, consider making frm_QuoteDetails a Subform
    of frm_NewQuote. Use OrderinfoID as the Master and Child Link Field.

    If you're short of screen space, you can put a Tab Control on the
    form; put all of the controls currently on frm_NewQuote onto the first
    page of the tab control, and the subform on the second.

    John W. Vinson[MVP]
     

Share This Page