You can ask the user to select which one they want to do in a form with option buttons, and then retrieve the selected choice using the Request object on the action page of the form.
Then just test which they selected using an If statement, and execute the appropriate query.
Tim