Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
' Code that works: Function FormRefresh() Dim ctlObject As Form Set ctlObject = Form_fExperts ' EXPLICITLY Define Form to refresh ctlObject.Refresh ' Requery source of data for Form. MsgBox ("Done") End Function ' ' Code that is not working Function FormRefreshTest(FormName) Dim ctlObject As Form, vFormName vFormName = ("Form_" & FormName) Set ctlObject = vFormName ' Define Form to refresh ctlObject.Refresh ' Requery source of data for Form. MsgBox ("Test Done") End Function
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.