lauren quantrell wrote:[color=blue]
> I have a combo box on a form. It uses the GotFocus event to poopulate
> the rowsource with a value list that is created on the fly in VBA. Fine
> and dandy, except, is a user opens another form and returns to the form
> with the rowsource, the rowsource is not refreshed because the combo
> box doesn't execute the GotFocus event because it has never lost the
> focus.[/color]
Then do what I do. Make the code that generates from the ongotfocus
event of the combobox a standalone code in a standard module. In the
pop up form where you're performing actions that may affect the sql of
the combobox in question, pop in that code.
In doing such things, I always have the code in standard modules in case
the afterupdate events of other controls elsewhere needs to fire the
rebuild of the combo box.
--
Tim
http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto