One form1 I have 2 command buttons - Add new record and other to view/edit existing record (the user can enter record id and click view/edit existing record button).
If the user clicks Add new record, the user is taken to the next screen where the record id is auto-generated & new record is created. Whereas if Edit/View existing record is clicked, existing information for that record will be displayed on the next screen.
How do I determine which command button has been pressed on form1 so that on form2 Add or Update code can be called based on the button clicked.
Any input is greatly appreciated, thanks!