Link to home
Start Free TrialLog in
Avatar of Ken Milam
Ken MilamFlag for United States of America

asked on

Refresh combobox on subfrom 1 from subform 2.

Hello Experts,
I have a form with two separate sub-forms

Main Form: f-Project
SubForm1:f-ProjectAdd
SubForm2: f-ProjectHours

I have a "Save Record" button on f-ProjectAdd.  After this button is clicked, I need for that new record to appear in the combobox on f-ProjectHours.

Can you please provide me with the VBA code to: 1) save the record from f-ProjectAdd, and 2) refresh/requery the combobox on f-ProjectHours.

Thanks,
Ken
ASKER CERTIFIED SOLUTION
Avatar of Dale Fye
Dale Fye
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
In the click event of the "Save Record" button
Form_f-ProjectHours.NameOfYourCombo.Requery

Open in new window