scottallenmccullough@gmail.com wrote:[color=blue]
> I'm sure there is an easy solution for this problem. On "FORM A" is a
> combobox with a separate table as its record source. If the data
> required in the combobox is not one of the available choices in the
> underlying recod source, the user is prompted to "click" a button
> opening "FORM B" allowing them to add the necessary data to the
> combobox's underlying recordset. Is there a way when closing FORM B
> and returning to FORM A to requery the combobox on FORM A so the data
> that was just added to the underlying recordset is now one of the
> available choices in the combobox?
>
> Thanks
> Scott[/color]
Open FormB with the acDialog option then add a requery in the next line of
code.
DoCmd.OpenForm "FormB",,,,,acDialog
Me.ComboBoxName.Requery
The acDialog option will cause the code to pause after the OpenForm method
and will not execute the last line until FormB has been closed.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com