Re: combo box that updates outside table and then needs to be requeried

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



In the OnClose event of your data entry form, put
Forms!MainFormName!SubFormName!ComboBoxName.Requery


mbs4653 wrote:
> Hello,
> I have a main form with about 6 tabs. On one of those tabs is a
> subform. On the subform, which is used to populate a table, is a combo
> box to look up company values from another table. I put an dbl click
> event on the box, so that if the company is not listed in the drop
> down, the user can dbl click and another form will open that updates
> another table. This outside form works well, but when I go back to the
> subform the new entry is not listed in the combo box, unless one closes
> the whole main form and then goes back into it.
>
> How do I get the combo box to requery and show the results of the
> updated underlying table. I have put the me.requery code in both the
> independent form that one enters the new data, and the subform, but
> neither works correctly.
>
> Any help greatly appreciated
>
>
> --
> mbs4653
> ------------------------------------------------------------------------
> mbs4653's Profile: http://www.hightechtalks.com/m388
> View this thread: http://www.hightechtalks.com/t2300064

.



Relevant Pages

  • Tab control disappears.
    ... The truth is that I am no longer sure what it is that causes the tabs to disappear on the smaller screen and feel that i have entered a universe without rules in which i need some guidance. ... Also please excuse me for being so simple, but in one of the questions it was said 'make the subform control smaller' - please could you spell that out for me; ... Rick Brandt, Microsoft Access MVP ...
    (microsoft.public.access.forms)
  • Re: main form, sub form, sub sub form ...etc
    ... prototype to see how i "might" arrange the data. ... The trick to doing it is to add a bunch of tabs (at design ... recordset clone (or open a recordset on the customer's unit ... so to do what i need i guess i would have to have a subform under the ...
    (microsoft.public.access.formscoding)
  • Re: main form, sub form, sub sub form ...etc
    ... The trick to doing it is to add a bunch of tabs (at design ... recordset clone (or open a recordset on the customer's unit ... so to do what i need i guess i would have to have a subform under the ... compressors at the site show on the next set of tabs below, ...
    (microsoft.public.access.formscoding)
  • Re: update a list box on a tab
    ... No error message is produced and the control does not update. ... switch tabs where they can now attach a child record to the new major item. ... Are you certain that you're using the name of the subform control on the ... Doug Steele, Microsoft Access MVP ...
    (microsoft.public.access.forms)
  • Re: Split subform over two tabs
    ... IsLoaded function to your database. ... In my case, my subform was already ... > tabs on a form and I did not want to put tabs on tabs on tabs if you know ... > the record id of the first form, ...
    (microsoft.public.access.forms)