I have a form (Class) that can be opened from two different locations. The first is from a search form that is a pop-up form opened from my startup form. The second is from a Work form.
On the Class form is a close form button. What I'd like to happen is if the user opened the Class form from the Work form and clicks the close form button they are sent back to the Work Form. If the user opened the Class form from the search form, then upon pressing the close form button they would be returned to either the search form or the Work form (preferable).
How can I code Access to recognize which form was the jumpoff point?
On the Class form is a close form button. What I'd like to happen is if the user opened the Class form from the Work form and clicks the close form button they are sent back to the Work Form. If the user opened the Class form from the search form, then upon pressing the close form button they would be returned to either the search form or the Work form (preferable).
How can I code Access to recognize which form was the jumpoff point?