ACC2000: Lost Printer Settings When Name AutoCorrect Is Enabled
ID: Q240826
|
The information in this article applies to:
Moderate: Requires basic macro, coding, and interoperability skills.
This article applies only to a Microsoft Access database (.mdb).
SYMPTOMS
A Microsoft Access report suddenly is not formatted as expected. Upon checking the printer settings, you find that they have been reset to their default settings.
CAUSE
This can happen under certain conditions if the Name AutoCorrect feature is enabled.
RESOLUTION
In the Page Setup dialog box, (on the File menu, click Page Setup) reset the values to the settings that you want.
To avoid this behavior, disable Name AutoCorrect by following these steps:
-
On the Tools menu, click Options.
-
In the Options dialog box, click the General tab.
-
Click to clear the Perform name AutoCorrect check box.
-
Click OK.
- Quit and then restart Access.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed
at the beginning of this article.
MORE INFORMATIONCAUTION: Following the steps in this example will modify the sample
database Northwind.mdb. You may want to back up the Northwind.mdb file
and perform these steps on a copy of the database.
Steps to Reproduce Behavior
This issue can occur in the following scenarios.
Scenario 1
After you compact a database, the printer settings for reports that contain subreports are reset to their default values after the second time that you preview a report.
To reproduce the first scenario, follow these steps:
-
Start Access 2000 and open the sample database Northwind.mdb.
-
On the Tools menu, click Options.
-
On the General tab, make sure that the Perform name AutoCorrect check box is selected. If not, click to select
it, and then restart Access.
-
Open the "Sales by Category" report in Design view.
-
On the File menu, click Page Setup.
-
Change all margins to .25".
-
Click the Page tab.
-
Under Orientation, verify that the orientation is set to Landscape.
-
Save and close the report.
-
Preview the report to verify that Access saved the margins and orientation correctly.
-
Close the report.
-
On the Tools menu, point to Database Utilities, and then click Compact and Repair database.
-
Preview the "Sales by Category" report. Note that the settings still look correct.
-
Close the report, and then preview the report again.
Note that the report layout has changed. When you click Page Setup on the File menu, note that the printer settings have been reset to their default values in the Page Setup dialog box. The margins are set at 1", and orientation is set to Portrait.
Scenario 2
After you modify the design of a table or query (not the names of any tables or fields) being used for the record source of a report, the printer settings for the report are reset to their default values after the second time that you preview the report.
To reproduce the second scenario, follow these steps:
-
Start Access 2000 and open the sample database Northwind.mdb.
-
On the Tools menu, click Options.
-
On the General tab, make sure that the Perform name AutoCorrect check box is selected. If not, click to select
it, and then restart Access.
-
Create a new report based on the Customers table.
- Add the CustomerID field to the report.
-
On the File menu, click Page Setup.
-
Change all margins to .25".
-
Click the Page tab.
-
Under Orientation, verify that the orientation is set to Landscape.
-
Close and save the report as testCustomers.
-
Preview the report to ensure that it is formatted correctly.
-
Close the report.
-
Open the Customers table in Design view.
-
Add some extra words to the Description property of the CustomerID field.
-
Save and close the table.
-
Preview the testCustomers report. Note that the settings still look correct.
-
Close the report, and then preview the report again.
Note that the report layout has changed. When you click Page Setup on the File menu, note that the printer settings have been reset to their default values in the Page Setup dialog box. The margins are now set at 1", and orientation is set to Portrait.
Scenario 3
With Name Auto Correct on:
- Create a report based on a query.
- Set the Margins to .25 from the default of 1.
- Save the report.
- Rename the query.
- Compact the database.
- Reopen the report in print preview. Check the margins, and note that they have returned to 1 from .25.
REFERENCESFor more information about printer settings, click Microsoft Access Help on the
Help menu, type page setup in the Office Assistant or
the Answer Wizard, and then click Search to view the topic.
Additional query words:
pra layout reports margins
Keywords : kbdta RptLayou
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbbug
|