Combo box pain

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Will

    Combo box pain

    Hi,

    I am using a form to enter data to a table. I have used the wizard to
    create the combo box using another table as a source of options to
    enter text values. The source table and destination tables both have
    the appropriate fields set as text. However when I use the form and
    check the table it is not the text value that is there but a
    corresponding number that is the primary key for that table.

    Any ideas anyone?

    Thanks,

    Will
  • Larry Linson

    #2
    Re: Combo box pain

    My guess is that you used a for one of the "text" values. Even though you
    may see text in datasheet view, those store an "index value" into a list,
    and they rise up to bite you in the tender places. If that is the case, get
    rid of that Field Type, handle it a different way, and, voila', you will not
    face this problem any more... you may face other problems, of course, but
    you'll have removed a potential source of problems. (IMNSHO, Lookup Fields
    are only helpful to novice end-users who use their data directly from the
    datasheet; for more advanced users and developers, they are just a source of
    irritation.)

    In such cases, I use a lookup Table, and _knowingly_ store the recordID for
    the value... and, when I want the text, I use a Query that joins the two
    tables.

    Larry Linson
    Microsoft Office Access MVP


    "Will" <willcull@yahoo .comwrote in message
    news:d57ac5c5-1204-4847-8684-2f6a6fc0358a@d6 2g2000hsf.googl egroups.com...
    Hi,
    >
    I am using a form to enter data to a table. I have used the wizard to
    create the combo box using another table as a source of options to
    enter text values. The source table and destination tables both have
    the appropriate fields set as text. However when I use the form and
    check the table it is not the text value that is there but a
    corresponding number that is the primary key for that table.
    >
    Any ideas anyone?
    >
    Thanks,
    >
    Will

    Comment

    • Larry Linson

      #3
      Re: Combo box pain

      Oops. First sentence should read... 'My guess is that you used a Lookup
      Field for one of the "text" values.'

      Larry

      "Larry Linson" <bouncer@localh ost.notwrote in message
      news:E7Yzj.1119 8$1_.4041@trndd c02...
      My guess is that you used a for one of the "text" values. Even though you
      may see text in datasheet view, those store an "index value" into a list,
      and they rise up to bite you in the tender places. If that is the case,
      get rid of that Field Type, handle it a different way, and, voila', you
      will not face this problem any more... you may face other problems, of
      course, but you'll have removed a potential source of problems. (IMNSHO,
      Lookup Fields are only helpful to novice end-users who use their data
      directly from the datasheet; for more advanced users and developers, they
      are just a source of irritation.)
      >
      In such cases, I use a lookup Table, and _knowingly_ store the recordID
      for the value... and, when I want the text, I use a Query that joins the
      two tables.
      >
      Larry Linson
      Microsoft Office Access MVP
      >
      >
      "Will" <willcull@yahoo .comwrote in message
      news:d57ac5c5-1204-4847-8684-2f6a6fc0358a@d6 2g2000hsf.googl egroups.com...
      >Hi,
      >>
      >I am using a form to enter data to a table. I have used the wizard to
      >create the combo box using another table as a source of options to
      >enter text values. The source table and destination tables both have
      >the appropriate fields set as text. However when I use the form and
      >check the table it is not the text value that is there but a
      >correspondin g number that is the primary key for that table.
      >>
      >Any ideas anyone?
      >>
      >Thanks,
      >>
      >Will
      >
      >

      Comment

      • Will

        #4
        Re: Combo box pain

        On Mar 6, 8:10 pm, "Larry Linson" <boun...@localh ost.notwrote:
        Oops.  First sentence should read... 'My guess is that you used a Lookup
        Field for one of the "text" values.'
        >
         Larry
        >
        "Larry Linson" <boun...@localh ost.notwrote in message
        >
        news:E7Yzj.1119 8$1_.4041@trndd c02...
        >
        >
        >
        My guess is that you used a for one of the "text" values. Even though you
        may see text in datasheet view, those store an "index value" into a list,
        and they rise up to bite you in the tender places.  If that is the case,
        get rid of that Field Type, handle it a different way, and, voila', you
        will not face this problem any more... you may face other problems, of
        course, but you'll have removed a potential source of problems. (IMNSHO,
        Lookup Fields are only helpful to novice end-users who use their data
        directly from the datasheet; for more advanced users and developers, they
        are just a source of irritation.)
        >
        In such cases, I use a lookup Table, and _knowingly_ store the recordID
        for the value... and, when I want the text, I use a Query that joins the
        two tables.
        >
        Larry Linson
        Microsoft Office Access MVP
        >
        "Will" <willc...@yahoo .comwrote in message
        news:d57ac5c5-1204-4847-8684-2f6a6fc0358a@d6 2g2000hsf.googl egroups.com...
        Hi,
        >
        I am using a form to enter data to a table.  I have used the wizard to
        create the combo box using another table as a source of options to
        enter text values.  The source table and destination tables both have
        the appropriate fields set as text.  However when I use the form and
        check the table it is not the text value that is there but a
        corresponding number that is the primary key for that table.
        >
        Any ideas anyone?
        >
        Thanks,
        >
        Will- Hide quoted text -
        >
        - Show quoted text -
        I'm not sure what I did as the wizard is pretty straightforward ,
        however copying a combox I entered directly into the form and making
        the appropriate alterations did the trick. Thanks Larry

        Comment

        Working...