Select Record When Duplicates In Drop Down Selection List

G

Guest

I used the combo box wizard, selecting the "find a record on my form based on
the value I selected in my combo box". The list is a list of purchase orders
sorted by customer name. Each customer can have several PO's. If you select a
particular record from the drop down list, it does not retrieve that record
into the form. It retrieves the first record for that customer. Is there a
way to have is fetch the exact record being selected? Thanks!
 
R

Ron2006

It sounds like the bound field on your combo is the customer name and
not the PO

Look at the code that the combo box has on change. you will have to
change that part of the logic. I am assuming that both the PO and
customer name are showing in the dropdown.

It is probably loading the arguments with
[customer] = me.comboname

will need to be changed to correspond to

[yourPOfieldname] = me.comboname.column(1)

the # is zero based and is the column number of where the PO shows up
in your query that supplies data for the combobox.
You may have to expand that logic if the PO # is not unique.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top