
Originally Posted by
John_G
Hi -
Looking at you original post, I think your problem is not as difficult as it looks -
Your combo box has three columns. When you reference the combo after making a selection, e.g. to assign the value to a form field as in me!field1 = me!combo1 , you get the value in the first column. You can get the value of the other columns just as easily, but you have to explicitly state which column. For example, to get the value in the second column, you would use me!field2 = me!combo1.column(1). That is not a typo - the column reference is zero-based, so the first column is column(0). For clarity, you can use me!field1 = me!combo1.column(0) with no problem.
The best place to put code for populating your form fields is in the After Update event of the combo box.
I notice on your form you have 5 occurrences of the ID and Name fields - is there a reason for that? If that grouping is repeated 5 times within the (Exam schedule?) table, you may have a data normalization issue (hard to tell from the form).
HTH
John