Users often forget to click the record selection bar on the right of a form when trying to print the current record. As a result, when Print is activated, copies of the form for all records in the table are sent to the printer. To avoid having hundreds of copies of the form inadvertently sent to the printer, add a button to the form that, when clicked, will ensure the form is printed only for the current record. Follow these steps:
- Open the form in Design view.
- Right-click any toolbar and click Toolbox. Click to activate the Control Wizards button, if necessary, and then click the Command button tool. (In Word 2007, on the Form Design Tools tab, click to activate the Use Control Wizards button in the Controls group, if necessary, and click the Command button.)
- Click and drag in the form where you want to locate the command button.
- Under Categories, click Record Operations.
- Under Actions, click Print Record.
- Click Next.
- Click Text.
- Click Next.
- Enter cmdPrintRecord.
- Click Finish.
Miss an Access tip?
Check out the Microsoft Access archive and catch up on other Access tips.
Help users increase productivity by automatically signing up for TechRepublic’s free Microsoft Office Suite newsletter, featuring Word, Excel, and Access tips, delivered each Wednesday.
Subscribe to the Developer Insider Newsletter
From the hottest programming languages to commentary on the Linux OS, get the developer and open source news and tips you need to know. Delivered Tuesdays and Thursdays