Help Please Combo box updates

Ask a Question related to Microsoft Access, Design and Development.

  1. #1

    Default Re: Help Please Combo box updates

    "EdK" <Ed.L.Kramer@questdiagnostics.com> wrote in message
    news:084801c34bbf$174ffa60$a001280a@phx.gbl...
    > I have a form that I created which has 2 combo boxes, one
    > for Sales ID and one for Sales Name. I want to be able to
    > choose either sales ID or sales name and have the other
    > update. Example, I only have the sales ID # and I choose
    > that and then the sales name comes up in the 2nd combo
    > box, and vise versa. Is this at all possible? Any help
    > would be greatly appreciated.
    In the SalesID combo include both columns
    Column(0) will be SalesID
    Column(1) will be SalesName (you can hide this column)

    In the Name Combo do the opposite
    Column(0) will SalesName
    Column(1) will be SalesID (again, hidden if you wish)

    In the AfterUpdate event of SalesID Combo have code like. . .

    Me!SalesNameCombo = Me!SalesIDCombo.Column(1)


    In the AfterUpdate event of SalesName Combo have code like. . .

    Me!SalesIDCombo = Me!SalesNameCombo.Column(1)

    You don't say if you are saving this, but just thought I would throw out that this
    would normally not be done. You should only save the ID value and use that to
    display the name if you need it.


    Rick Brandt Guest

  2. Similar Questions and Discussions

    1. Updates
      Karthik The standards guys will go crazy with this, but if it is for a one time shot, consider using the proprietary UPDATE FROM with a JOIN...
    2. CF MX 6.1 JVM Updates
      I've been interested in updating the JVM on my CF MX 6.1 servers. 1. Is updating the Sun JVM from 1.4.2 to 1.5.x support? 2. How do you do it?...
    3. DNS Updates
      I have a Windows Form that is calling a webservice. Over the weekend, we moved the webservice to a new server. However, the Windows Form is...
    4. ps 7.0 updates?
      our office uses photoshop 7.0 (rarely)..so it's easy for us to fall behind on any updates or downloads. i know we can just go to adobe.com and...
    5. Win updates
      I can can install the download manager for Service pak 1 into my files, but when I try to download the SP I get a "not compatible etc." warning, if...
  3. #2

    Default Re: Help Please Combo box updates

    >-----Original Message-----
    >"EdK" <Ed.L.Kramer@questdiagnostics.com> wrote in message
    >news:084801c34bbf$174ffa60$a001280a@phx.gbl...
    >> I have a form that I created which has 2 combo boxes,
    one
    >> for Sales ID and one for Sales Name. I want to be able
    to
    >> choose either sales ID or sales name and have the other
    >> update. Example, I only have the sales ID # and I choose
    >> that and then the sales name comes up in the 2nd combo
    >> box, and vise versa. Is this at all possible? Any help
    >> would be greatly appreciated.
    >
    >In the SalesID combo include both columns
    >Column(0) will be SalesID
    >Column(1) will be SalesName (you can hide this column)
    >
    >In the Name Combo do the opposite
    >Column(0) will SalesName
    >Column(1) will be SalesID (again, hidden if you wish)
    >
    >In the AfterUpdate event of SalesID Combo have code
    like. . .
    >
    >Me!SalesNameCombo = Me!SalesIDCombo.Column(1)
    >
    >
    >In the AfterUpdate event of SalesName Combo have code
    like. . .
    >
    >Me!SalesIDCombo = Me!SalesNameCombo.Column(1)
    >
    >You don't say if you are saving this, but just thought I
    would throw out that this
    >would normally not be done. You should only save the ID
    value and use that to
    >display the name if you need it.
    >
    >
    >.
    >Rick,
    Thank you very much worked like a charm. I am not one that
    usually does things normally. Thanks again.

    Ed
    EdK Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139