L
lance.schaeffer
Hello,
I currently have a combo box (unbound) which derives its values from a
list of criteria, of which two important ones are "OrgId" and "Dup"
[Dup being Duplicate]. OrgID Pulls the name of the organization from a
table, and displays it in the combo box. This combo box is a "search"
box for a form, in which it then loads whatever record meets the
criteria.
The issue I am running into with my original setup (OrgID was the bound
source) was that I couldn't select the second entry where OrgID was the
same, but Dup was different. This obviously being because my
controlsource was just OrgID. So my solution for this came from the
thread "MS Access: Multiple columns bound in Combo Box:. I combined my
two keys into "one" momentarily, creating a new controlsource "OrgDup",
and now am stuck trying to parse the data back out into something
meaningful, so that the combobox can control two lookupfields.
in all cases, Dup will be a 1 character field, and OrgID will be any
value from 1 to the thousands. I am able to derive the Dup field from
the combined field by just using a query that pulls the rightmost
character, but I can't figure out how to pull "all but the rightmost
character" for the orgID number. Any help on how to do that, or if
there is a better way to set up my controlsource, would be appreciated.
Thanks in advance!
I currently have a combo box (unbound) which derives its values from a
list of criteria, of which two important ones are "OrgId" and "Dup"
[Dup being Duplicate]. OrgID Pulls the name of the organization from a
table, and displays it in the combo box. This combo box is a "search"
box for a form, in which it then loads whatever record meets the
criteria.
The issue I am running into with my original setup (OrgID was the bound
source) was that I couldn't select the second entry where OrgID was the
same, but Dup was different. This obviously being because my
controlsource was just OrgID. So my solution for this came from the
thread "MS Access: Multiple columns bound in Combo Box:. I combined my
two keys into "one" momentarily, creating a new controlsource "OrgDup",
and now am stuck trying to parse the data back out into something
meaningful, so that the combobox can control two lookupfields.
in all cases, Dup will be a 1 character field, and OrgID will be any
value from 1 to the thousands. I am able to derive the Dup field from
the combined field by just using a query that pulls the rightmost
character, but I can't figure out how to pull "all but the rightmost
character" for the orgID number. Any help on how to do that, or if
there is a better way to set up my controlsource, would be appreciated.
Thanks in advance!