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

Forms that read tables

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

Tags:
  1. wayno

    wayno
    Expand Collapse
    Guest

    Please help!!! i have been lost for days!! i am trying to get
    information on how to get one field in a form to show one detail . I.e
    Name, and the other field to show the relevant information from the
    table i.e phone number. i need to use a combo box to select the name,
    and i want the phone number field to show the persons phone number
    automaticly. i am a basic user so simple terms would be appreiciated.
    Thanks Wayne
     
  2. Loading...

    Similar Threads Forum Date
    1984 Delhi Police shielded Sajjan Kumar in anti-Sikh riots: CBI informs SC Read more: Delhi Police shiel History of Sikhism Aug 28, 2010
    USA Akaal Takhat Forms Committee to Represent US Sikhs Breaking News Sep 13, 2013
    India Poll reforms on crash course Breaking News Sep 7, 2013
    General A Conversation about the Grammatical Forms of Raam and Simran Hard Talk Dec 1, 2011
    India Anna Says Fast Only "Suspended", Wants Electoral Reforms Breaking News Aug 28, 2011

  3. Al Camp

    Al Camp
    Expand Collapse
    Guest

    Wayne,
    First, using the name field (ex. CustName) to locate related data is not good design.
    Too much chance of legitimate duplicate names... Each CustName should have it's own key
    field unique value, and all references to data associated with that CustName should be
    determined via that unique CustID.
    You should be using a CustID to identify a name and a phone number.
    But, let's put that issue aside for right now... although it should be addressed.

    I assume that the combo (ex. cboCustName) is bound to the CustName field of the table
    you are updating. There is no need to save the PhoneNo, just "display" it. Never capture
    a field value that can be re-derived from the CustName in any subsequent form, query, or
    report.
    Add the PhoneNO field to the query behind your combobox...
    ex. John Davidson 666-666-6666

    Place an unbound calculated field on your form (ex. txtPhoneNo) with this a sthe
    ControlSource...
    = cboCustName.Column(1)
    Combobox columns are referred to as 0, 1, 2, 3, etc.. so CustName is in (0) and Phone
    number is in (1)

    Whenever you select a name from the combo, the associated PhoneNo will "display" in the
    calculated field.
    --
    hth
    Al Camp
    Candia Computer Consulting - Candia NH
    http://home.comcast.net/~cccsolutions

    "wayno" <wayne.everton@prgpowerhouse.co.uk> wrote in message
    news:1149519806.122824.115040@f6g2000cwb.googlegroups.com...
    > Please help!!! i have been lost for days!! i am trying to get
    > information on how to get one field in a form to show one detail . I.e
    > Name, and the other field to show the relevant information from the
    > table i.e phone number. i need to use a combo box to select the name,
    > and i want the phone number field to show the persons phone number
    > automaticly. i am a basic user so simple terms would be appreiciated.
    > Thanks Wayne
    >
     
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