• Command Button

    • This topic has 3 replies, 4 voices, and was last updated 24 years ago.
    Author
    Topic
    #356169

    I would like to build a report that has a command button on it that would take me back to a switchboard after the report was viewed/printed. Any ideas?

    Viewing 2 reply threads
    Author
    Replies
    • #526602

      Sorry, but you won’t be able to do that. Reports are not interactive. What you can do is put some code into the report’s OnClose event using the DoCmd.SelectObject method to select the switchboard when the report closes.

      Alternatively, you can create a custom menubar that loads with the report and includes a button calling code to close the report and select the switchboard.

    • #526622

      Assuming you have called the report from the switchboard you will go back to the switchboard automatically when you close the report.
      Alternatively from the form doing the printing/preview open the switchbord in code before doing the print/preview so that the automatic behaviour will apply.

    • #526678

      I frequently find that I can create a form that is identical to a basic report. If you don’t have too complex a report, go into design mode, then copy all of the controls on the form. Open a blank form and paste the controls. On this you can place any kind of button you want.

      Jeff

    Viewing 2 reply threads
    Reply To: Command Button

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: