Welcome to SPN

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

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

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]
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page