Refreshing Combo Boxes in a Subform that is not Expanded

SD007

New Member
Joined
Oct 25, 2003
Messages
1
:oops:

I have a single form that has 5 tabs. Each tab has multiple nested sub-forms.

I.e. Form -->
Tab1 : Sub-Form --> (sub) Sub-Form --) (sub - sub) sub-form)..
Tab2 : Sub-Form --> (sub) Sub-Form --) (sub - sub) sub-form)..

In Tab1, I add a record. On insert, this record should cause a nested sub-form's combobox in Tab2 to be requeried.

I use the following two lines of code in an After_Insert event:
Forms!frm_DE!dg_record!dg_recorddetail!dg_recordregistration.Form!Person.Requery
Forms!frm_DE!dg_record!dg_recorddetail!dg_recordregistration.Requery

This code works only if Tab2's sub-form is expanded. Does anyone know how to get this code to work if the sub-form is not expanded?

I appreciate any help or samples. Thanks.

SD
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Not sure, but as a general rule Access regards hidden controls as disabled. I've found that data can update in those controls but event-driven stuff is out of bounds. If anyone knows a workaround, I'd be eager to find out too.

Denis
 
Upvote 0

Forum statistics

Threads
1,221,572
Messages
6,160,575
Members
451,656
Latest member
SBulinski1975

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top