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

Populate a field based on another table.

Discussion in 'Information Technology' started by Keith, Nov 9, 2005.

  1. Keith

    Keith
    Expand Collapse
    Guest

    I have a form with a sub form attached. I need three fields to be
    populated in the main form to allow a link to be made to the sub form.
    One of these fields is a Rep ID code. In another form I have a simple
    list of reps, their ID code and a tick box to say who the user is (only
    one tick is permitted so only one Rep can be selected).

    How can I get my main form to lookup the smaller table see who the rep
    is and populate the Rep ID field every time I add a new record?
     
  2. Loading...


  3. John Vinson

    John Vinson
    Expand Collapse
    Guest

    On Tue, 08 Nov 2005 15:30:54 +0000, Keith <keith@dolby-ltd.co.uk>
    wrote:

    >I have a form with a sub form attached. I need three fields to be
    >populated in the main form to allow a link to be made to the sub form.
    >One of these fields is a Rep ID code. In another form I have a simple
    >list of reps, their ID code and a tick box to say who the user is (only
    >one tick is permitted so only one Rep can be selected).
    >
    >How can I get my main form to lookup the smaller table see who the rep
    >is and populate the Rep ID field every time I add a new record?


    The simplest way would be to put a Combo Box based on the Reps table
    on your form.

    Note that the "another form" is an unnecessary complication. Just use
    a combo box or a listbox right on your mainform; you can even use its
    name as one of the three fields in the Master Link Fields property of
    the subform to automate the link.

    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