Good to hear that it is working now, Mandy. Thanks for letting me know.
If you would like a little background info ...
In general, when you move the highlight in a combo box, the effect is to update the current record in the ControlSource cursor. This is not so very different from typing into a text box, or toggling a checkbox. In all these cases, you are changing the
value of the control. And changing the value of a control that has a ControlSource has the effect of updating the field to which the ControlSource is pointing.
So that is exactly what you are seeing. It happens that, in your case, the ControlSource's cursor is also the cursor you used to populate the combo. So, if the combo is populated from the Customer cursor, and that cursor is sitting on Customer A, as you move the highlight, that record will be updated with the value for Customer B, Customer C, and so on, in turn.
This is less of a problem if the combo's RowSourceType is 2 (Alias) or 6 (Fields). In those two cases, moving the highlight within the combo has the effect of moving the record pointer within the cursor. So the result is the same as in other cases, but you are in effect updating the ControlSource field with itself. Although (in most cases) that will do no harm, it is something that should be avoided.
The bottom line is never to use the same cursor for the ControlSource as you are using for the RowSource. (And, of course, when I use the word "cursor" here, it also applies to physical tables or views.)
I hope this makes sense.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro articles, tips and downloads