I have a button on a subform that allows a user to add a new task record. When the "Add New Task" button get pressed,
a pop-up window appears that allows a user to enter a new task record. The pop up window contains a "Save and Close"
button. When the user enters a new record on pop-up window and clicks the "Save and Close" button, an on-click event
get fired. The on-click event sub-procedure will save the new Task record, and execute the following statements:
'Set the focus back to the sub-form
Form!Mainform-1650.Form!SubForm1.Form!TabTaskOutstanding.SetFocus
'Requery the sub-form so that the user can see their newly updated task information.
Form!Mainform-1650.Form!SubForm1.Form!TabTaskOutstanding.Form.Requery
a pop-up window appears that allows a user to enter a new task record. The pop up window contains a "Save and Close"
button. When the user enters a new record on pop-up window and clicks the "Save and Close" button, an on-click event
get fired. The on-click event sub-procedure will save the new Task record, and execute the following statements:
'Set the focus back to the sub-form
Form!Mainform-1650.Form!SubForm1.Form!TabTaskOutstanding.SetFocus
'Requery the sub-form so that the user can see their newly updated task information.
Form!Mainform-1650.Form!SubForm1.Form!TabTaskOutstanding.Form.Requery