Hello,
I have a form (frm_Log_Add_or_Edit) with an unbound textbox called: txt_form_to_refresh
This textbox receives the name of a form when it is opened.
When I close the form I want the vba to refresh the form whos name is stored in the unbound textbox: txt_form_to_refresh
(The form which I wish to refresh will already be open)
I have tried the following attached to a button closing the form - but get an error.
Is there a workaround? Many thanks Mark
Current code:
I have a form (frm_Log_Add_or_Edit) with an unbound textbox called: txt_form_to_refresh
This textbox receives the name of a form when it is opened.
When I close the form I want the vba to refresh the form whos name is stored in the unbound textbox: txt_form_to_refresh
(The form which I wish to refresh will already be open)
I have tried the following attached to a button closing the form - but get an error.
Is there a workaround? Many thanks Mark
Current code:
Code:
Forms!Me.txt_form_to_refresh.Requery
DoCmd.Close acForm, "frm_Log_Add_or_Edit"