Preview the entry to make sure all of the text is right.
Click OK to add the AutoText entry.
From the Insert menu, choose AutoText. Then, choose AutoText from the resulting submenu. Word will insert the selected text, which you can check in the Preview pane.
To enter the numbered list tag in a document, simply type <n where you want the tag and press Enter. Word will insert the entire tag for you. It turns out that including additional lines in an AutoText entry isn't hard at all.
In addition, this method retains formatting (as you can see above). Apply the formatting as you normally would. Then, select it and work through the steps to create the AutoText entry--format and all.
Microsoft Access
Close an Access report automatically when there's no data to report
Reports display data in a meaningful fashion, unless there's no data to report. When this happens, you'll want to usurp the reporting process a bit to avoid confusion. That's accomplished easily enough using the report's No Data event. Simply open the report's module and enter the following event procedure:
Private Sub Report_NoData(Cancel As Integer)
MsgBox "There's no data to report.", vbOKOnly, "Error"
Cancel = True
End Sub
Be sure to save the form after adding the code.
When users open the report with no data to report, Access will display a meaningful message. (You can use whatever message you like, of course.) Users don't accidentally print useless reports or call you in a panic wanting to know what's wrong with the report.