refresh a contron from another control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When I click on the f_markets control I want to refresh the cb_market control
on my form. But I get the error messgae 'object required ' .

What do I need to do to reference cb_Market correctly?

Bruce

Private Sub f_markets_Click()
a = [Forms]![frm_Prod_Fcst_Search]![cb_Market]
a.Refresh
End Sub
 
Try this instead

[Forms]![frm_Prod_Fcst_Search]![cb_Market].Requery

Other wise you have to declare "a" as a control, but there is no need to do
that, just use the above example
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Access Form Refresh 1
Build a text sting and ignore empty text boxes 2
Refreshing a query 1
Printing from a form 2
Refreshing a subform 2
refresh subform control 1
refresh tbox value 2
Access Sub form opens before the main form in MS Access 0

Back
Top