K
kknowles via AccessMonster.com
I have a form which has two combo boxes on it. The first combo box selects a
document number (say "cboDoc"), when a document is selected this box does two
things (via after-update macro); first it fills in about 10 text boxes on the
same form with related information to the document, second it filters and
requries the list for the second combo box. I have recently got this working
perfectly.
My problem is with the second combo box (say "cboItem") which is populated
with a list of item numbers pertaining to the chosen document. This combo box
selects an item number from the filtered list and fills in about 4 text boxes
on the same form with related information to the item. The problem is that no
matter which item number i choose from the second combo box, it always
selects the first item number (say the list has item 1, 2, 3, 4, 5 and i
choose item 4 - when the drop down list closes, item 1 is highlighted, and
the 4 text boxes on the form display the info for item 1.
I am unsure as to what the problem is because the second combo box should
work exactly like the first one, I use a macro (gotocontrol, findrecord) the
same way that i did for the first one.
This may sound confusing, and im not sure if ive provided enough info. but
any suggestions would be appreciated!
document number (say "cboDoc"), when a document is selected this box does two
things (via after-update macro); first it fills in about 10 text boxes on the
same form with related information to the document, second it filters and
requries the list for the second combo box. I have recently got this working
perfectly.
My problem is with the second combo box (say "cboItem") which is populated
with a list of item numbers pertaining to the chosen document. This combo box
selects an item number from the filtered list and fills in about 4 text boxes
on the same form with related information to the item. The problem is that no
matter which item number i choose from the second combo box, it always
selects the first item number (say the list has item 1, 2, 3, 4, 5 and i
choose item 4 - when the drop down list closes, item 1 is highlighted, and
the 4 text boxes on the form display the info for item 1.
I am unsure as to what the problem is because the second combo box should
work exactly like the first one, I use a macro (gotocontrol, findrecord) the
same way that i did for the first one.
This may sound confusing, and im not sure if ive provided enough info. but
any suggestions would be appreciated!