Refreshing a Subform

G

Guest

In a subform I have a combo box getting it's list from another combo box in the same subform. I have been able to retreive the data for the second combo box without a problem. However, I can't refresh the information in the second combo box without closing the form. I tried using a macro set to "Requery" but it didn't work. Any way to do it without using VB?
Thanks
 
R

Roger Carlson

Why not use VB? If you haven't before, it's time to start. In an event
procedure of the AfterUpdate event of the first combo box, put something
like this:

forms!Mainform!SubformControl.form!SubformCombo.Requery

Where you replace the actual name of your main form for "MainForm", the name
of the subform control for "SubformControl", and the name of the combo on
the subform for "SubformCombo".

On my website (see sig below) is a small sample database called
"SubformReference.mdb" which illustrates this and other referencing issues
with subforms.

--
--Roger Carlson
www.rogersaccesslibrary.com
Reply to: Roger dot Carlson at Spectrum-Health dot Org

Burky said:
In a subform I have a combo box getting it's list from another combo box
in the same subform. I have been able to retreive the data for the second
combo box without a problem. However, I can't refresh the information in
the second combo box without closing the form. I tried using a macro set to
"Requery" but it didn't work. Any way to do it without using VB?
 
G

Guest

That worked, thanks a lot. I've been working on it for weeks and it's nice to working correcting! Thanks
 

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

Top