I have an unbound main form with tabs that have my various forms for my application. I am having an issue with the data not refreshing; I think I need to be using the requery action, not the refresh. I guess I have two questions:
1. Is there a way to generically "Requery" form data when I click on each tab in my main form? I have tried to create a macro with just "Requery" in it, and putting it in OnActivate, OnLoad, etc., but nothing seems to work.
2. What is the proper syntax to refresh a combo/list box? Here are my specifics: I have a main form "frmMain" that has tabs with unbound forms. One subform is "frmBudgetMaintenance" with a subform "frmProjectLineItems" that has a combo/list box "text16". I can't arrange the Requery call in VBA correctly.
Also, one last thing, is there a way to mimic the "Refresh All" button in the ribbon with VBA? That seems to always fix the issue I am dealing with.
1. Is there a way to generically "Requery" form data when I click on each tab in my main form? I have tried to create a macro with just "Requery" in it, and putting it in OnActivate, OnLoad, etc., but nothing seems to work.
2. What is the proper syntax to refresh a combo/list box? Here are my specifics: I have a main form "frmMain" that has tabs with unbound forms. One subform is "frmBudgetMaintenance" with a subform "frmProjectLineItems" that has a combo/list box "text16". I can't arrange the Requery call in VBA correctly.
Also, one last thing, is there a way to mimic the "Refresh All" button in the ribbon with VBA? That seems to always fix the issue I am dealing with.