ACC2000: "The CALC expression..." Error Switching to Page View
ID: Q202222
|
The information in this article applies to:
Novice: Requires knowledge of the user interface on single-user computers.
This article applies to a Microsoft Access database (.mdb) and a Microsoft Access project (.adp).
SYMPTOMS
When you type an expression in the ControlSource property on a data access page and then switch to Page view, you may receive the following error message:
The CALC expression (expression) is invalid.
After you click OK to close the error message, you see the page in Page view, but all the fields contain #Name?.
CAUSE
You will see this behavior if a control on the page contains an invalid expression.
RESOLUTION
Change the ControlSource property to a valid expression.
MORE INFORMATION
Steps to Reproduce Behavior
CAUTION: 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.
- Open the sample database Nothwind.mdb.
- In the Database window, click Pages under Objects, and then click New.
- In the New Data Access Page dialog box, click Page Wizard. Click OK.
- In the Tables/Queries list, click Tables: Employees. Move EmployeeID, LastName, and FirstName from the Available Fields list to the Selected Fields list, and then click Finish.
- Add a text box to the page.
- If the Properties window is not open, on the View menu, click Properties. Click the Data tab.
- In the ControlSource property, type =LastName.Value & FirstName.Value.
- On the View menu, click Page View. Click OK to the error message. Note that all fields on the page contain #Name?.
Additional query words:
DAP prb
Keywords : kbdta AccDAP DAPHowTo
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: July 8, 1999