bcooler
Programmer
- Jun 13, 2009
- 132
Hello all-
I have created a combobox which shows 7 columns when the user clicks it (bound column=1). The Rowsource is based on an automated Excel Export that I have some control over. There is NO primary key on this Excel spreadsheet (if that's even possible) and the bound column I've chosen (part number) is duplicated many times (which is the problem I think).
Other unbound textboxes in the form fill in automatically based on the combobox's column values. For example:
is within one of the boxes, which says to be equal to the 4th column of the combobox's choice.
Now, this generally works well for me, but when I pick a record in the combobox that has same values for the 1st column (part number 12345, listed three times as an example), the unbound textboxes will not modify themselves for the particular record that I chose. They stick with the first instance of part number 12345 no matter which record I choose that happens to include 12345. Other records with different part numbers are fine and update themselves as expected.
Like I suggested earlier, I believe this is a primary key type issue and Access is getting confused on which record I am referencing, but I'm not sure how to fix that?
Thanks!
Brian
I have created a combobox which shows 7 columns when the user clicks it (bound column=1). The Rowsource is based on an automated Excel Export that I have some control over. There is NO primary key on this Excel spreadsheet (if that's even possible) and the bound column I've chosen (part number) is duplicated many times (which is the problem I think).
Other unbound textboxes in the form fill in automatically based on the combobox's column values. For example:
Code:
=[cboPN].[column](4)
is within one of the boxes, which says to be equal to the 4th column of the combobox's choice.
Now, this generally works well for me, but when I pick a record in the combobox that has same values for the 1st column (part number 12345, listed three times as an example), the unbound textboxes will not modify themselves for the particular record that I chose. They stick with the first instance of part number 12345 no matter which record I choose that happens to include 12345. Other records with different part numbers are fine and update themselves as expected.
Like I suggested earlier, I believe this is a primary key type issue and Access is getting confused on which record I am referencing, but I'm not sure how to fix that?
Thanks!
Brian