Microsoft Office Online
Sign in to My Office Online (What's this?) | Sign in

 
 
Microsoft Office Access
Search
Search
 
Icon: Flag: (c) Microsoft
Get up to speed
 
 
 
Warning: You are viewing this page with an unsupported Web browser. This Web site works best with Microsoft Internet Explorer 6.0 or later, Firefox 1.5, or Netscape Navigator 8.0 or later. Learn more about supported browsers.

Troubleshoot data access pages
 

ShowSorting data

ShowI get the message "The DefaultSort property is invalid."

In the DefaultSort property box, type the name of the field or fields you want to sort on. Separate multiple field names with a comma. If you want to sort in ascending or descending order, you can follow each name with a space and the keyword ASC or DESC, respectively. For example, type OrderDate DESC, OrderID ASC. If you don't specify the order, Microsoft Access sorts in ascending order.

If the control you want to sort on is bound to an expression (expression: Any combination of mathematical or logical operators, constants, functions, and names of fields, controls, and properties that evaluates to a single value. Expressions can perform calculations, manipulate characters, or test data.), you must type the alias of the control as displayed in its ControlSource property. For example, if the ControlSource property of the control you want to sort on is set to GroupOfExtendedPrice: ExtendedPrice, type GroupOfExtendedPrice in the DefaultSort property box.

ShowCalculating data

ShowI get the message "Undefined function in an expression."

You've bound a control on a data access page to a calculated field (calculated field: A field, defined in a query, that displays the result of an expression rather than displaying stored data. The value is recalculated each time a value in the expression changes.) that uses a function that isn't supported on data access pages.

ShowFunctions supported on a data access page

A control (control: A graphical user interface object, such as a text box, check box, scroll bar, or command button, that lets users control the program. You use controls to display data or choices, perform an action, or make the user interface easier to read.) in a data access page (data access page: A Web page, published from Access, that has a connection to a database. In a data access page, you can view, add to, edit, and manipulate the data stored in the database. A page can also include data from other sources, such as Excel.) or a form that is open in PivotTable view (PivotTable view: A view that summarizes and analyzes data in a datasheet or form. You can use different levels of detail or organize data by dragging the fields and items or by showing and hiding items in the drop-down lists for the fields.) or PivotChart view (PivotChart view: A view that shows a graphical analysis of data in a datasheet or form. You can see different levels of detail or specify the layout by dragging fields and items or by showing and hiding items in the drop-down lists for the fields.) can contain an expression (expression: A combination of operators, field names, functions, literals, and constants that evaluates to a single value. Expressions can specify criteria (such as Order Amount>10000) or perform calculations on field values (such as Price*Quantity).) that uses a Microsoft Visual Basic for Applications (VBA) function. However, the expression will generate an error unless it appears on the following list.

 Note   This limitation doesn't apply to expressions in tables, queries, views, stored procedures, or user-defined functions that you have opened in PivotTable or PivotChart view.

ShowA - C

ABS ARRAY
ASC ASCB
ASCW ATN
CBOOL CBYTE
CCUR CDATE
CDBL CHOOSE
CHR CHR$
CHRB CHRB$
CHRW CHRW$
CINT CLNG
COS CSNG
CSTR CVAR
CVDATE CVERR

ShowD - H

DATE DATE$
DATEADD DATEDIFF
DATEPART DATESERIAL
DATEVALUE DAY
DDDB ERROR
ERROR$ EXP
FIX FORMAT
FORMAT$ FV
HEX HEX$
HOUR

ShowI - L

IIF IMESTATUS
INSTR INT
IPMT IRR
ISDATE ISEMPTY
ISERROR ISNULL
ISNUMERIC ISOBJECT
ICASE ICASE$
LEFT LEFT$
LEFTB LEFTB$
LEN LENB
LOG LTRIM
LTRIM$

ShowM - Q

MID MID$
MIDB MIDB$
MINUTE MIRR
MONTH NOW
NPER NPV
OCT OCT$
PARTITION PMT
PPMT PV
QBCOLOR

ShowR- S

RATE RGB
RIGHT RIGHT$
RIGHTB RIGHTB$
RND ROUND
RTRIM RTRIM$
SECOND SGN
SIN SLN
SPACE SPACE$
SQR STR
STR$ STRCOMP
STRCONV STRING
STRING$ SWITCH
SYD

ShowT - Z

TAN TIME
TIME$ TIMER
TIMESERIAL TIMEVALUE
TRIM TRIM$
TYPENAME UCASE
UCASE$ VAL
VARTYPE WEEKDAY
YEAR

ShowDesigning a page

ShowI can't select multiple controls

To select multiple controls, you must have Microsoft Internet Explorer 5.5 or later installed on your computer.

ShowI have the same version of Microsoft Access as the rest of my team, but my design environment seems different from that of the rest of my team.

Check the version of Microsoft Internet Explorer that is installed on your computer. If you don't have Internet Explorer version 5.5 or later, you will not be able to select and work with multiple controls, or see some properties and toolbars.

ShowI get the message "Invalid argument."

ShowSome wizards are not available

ShowI get the message "The setting you entered isn't valid for this property."

If you are entering a value (value: The text, date, number, or logical input that completes a condition that a field must meet for searching or filtering. For example, the field Author with the condition equals must include a value, such as John, to be complete.) in a property that has a drop-down list, select a value from the list. For information about valid values for properties that don't have drop-down lists, press F1 in the property box.

If you are entering an expression (expression: Any combination of mathematical or logical operators, constants, functions, and names of fields, controls, and properties that evaluates to a single value. Expressions can perform calculations, manipulate characters, or test data.) in the ControlSource property box, make sure:

ShowWorking with files and links

ShowI don't want to keep my supporting data access page files in a folder.

When you save a data access page in Design view (Design view: A window that shows the design of these database objects: tables, queries, forms, reports, macros, and data access pages. In Design view, you can create new database objects and modify the design of existing ones.), all supporting files — such as bullets, background textures, and graphics — are by default stored in a separate folder. If you do not want to use a separate folder, do the following:

  1. Open the data access page in Design view.

  2. On the Tools menu, click Options, and then click the General tab.

  3. Click Web Options, and then click the Files tab.

  4. Under File names and locations, clear the Organize supporting files in a folder check box.

ShowI moved my data access page to another location and now some of the links are broken.

When you save your file as a data access page in Design view (Design view: A window that shows the design of these database objects: tables, queries, forms, reports, macros, and data access pages. In Design view, you can create new database objects and modify the design of existing ones.), all supporting files — such as bullets, background textures, and graphics — are by default organized in a supporting folder. If you move or copy your data access page to another location, you must also move the supporting folder so that you maintain all links to your page.

ShowI can't automatically create a backup copy of my data access page.

When you save a data access page in Design view (Design view: A window that shows the design of these database objects: tables, queries, forms, reports, macros, and data access pages. In Design view, you can create new database objects and modify the design of existing ones.), a backup copy is not automatically created. To save a copy of a data access page, click Save As on the File menu. In the Save Data Access Page <object name> To box, type a new name for the data access page, and then click OK.

ShowThe name of a supporting folder for a data access page is in another language.

When you save your data access page in Design view (Design view: A window that shows the design of these database objects: tables, queries, forms, reports, macros, and data access pages. In Design view, you can create new database objects and modify the design of existing ones.), all supporting files — such as bullets, background textures, and graphics — are by default organized in a supporting folder. By default, the name of the supporting folder is the name of the data access page plus an underscore (_), a period (.), or a hyphen (-) and the word "files." The word "files" will appear in the language of the version of Microsoft Office that was used to save the file as a data access page. For example, suppose you use the Dutch language version of Office to save a file called Page1 as a data access page. The default name of the supporting folder would be Page1_bestanden.

 Note   If you save your data access page with a short file name (a maximum of eight characters, plus a three-character file extension) by clearing the Use long file names whenever possible check box in the Web Options dialog box, the supporting folder is the name of the data access page without the word "files."

ShowI can't locate the HTML file corresponding to a data access page.

The HTML (HTML: The standard markup language used for documents on the World Wide Web. HTML uses tags to indicate how Web browsers should display page elements such as text and graphics and how to respond to user actions.) file associated with the data access page has been renamed, moved, or deleted.

Although a data access page is a database object (database objects: An Access database contains objects such as tables, queries, forms, reports, pages, macros, and modules. An Access project contains objects such as forms, reports, pages, macros, and modules.), most of the information about a page is stored in a corresponding HTML file. You specify the name and location of this HTML file the first time you create a data access page. Microsoft Access keeps a shortcut in the Database window (Database window: The window that appears when you open an Access database or an Access project. It displays shortcuts for creating new database objects and opening existing objects.) to the corresponding HTML file's location in your file system. You can see the HTML file's location in the Database window by resting the pointer on the name of the page.

If the HTML file has been renamed or moved, you can restore the HTML file's original name, move the HTML file back to its original location, or change the shortcut maintained by Access to the new name or location. (Click Locate in the message box that appears when Access cannot locate the HTML file.)

Notes

ShowUsing graphics

ShowI see a red X, a blank image, or no image at all on my data access page.

You might have the wrong browser settings   Although all browsers support the same language (HTML (HTML: The standard markup language used for documents on the World Wide Web. HTML uses tags to indicate how Web browsers should display page elements such as text and graphics and how to respond to user actions.)), there are some differences among browsers. Some support different versions of HTML and different HTML extensions (HTML extensions: A feature or setting that is an extension to the formal HTML specification. Extensions may not be supported by all Web browsers, but they may be used widely by Web authors. An example of an extension is marquee scrolling text.). Custom options can be set in browsers, such as the default text and background colors, and whether or not graphics are displayed. Consider testing your data access page in different browsers — some of which are available for downloading on the Web — and with different monitor settings, to see if all of your page elements appear.

You might have used the wrong picture format   If you link a graphic to a data access page, and the graphic format isn't supported by your browser, your graphics won't be visible. Make sure that the linked picture is in a graphic format that is compatible with your browser. The JPEG (JPEG: A graphics file format (.jpg extension in Microsoft Windows) supported by many Web browsers that was developed for compressing and storing photographic images. It's best used for graphics with many colors, such as scanned photos.) and GIF (GIF: A graphics file format (.gif extension in Windows) used to display indexed-color graphics on the World Wide Web. It supports up to 256 colors and uses lossless compression, meaning that no image data is lost when the file is compressed.) graphic formats are compatible with most browsers.

ShowThe graphics and text on my data access page look different on another computer.

If your data access page looks different from what you expect, check the browser settings. Although all Web browsers support the same language (HTML (HTML: The standard markup language used for documents on the World Wide Web. HTML uses tags to indicate how Web browsers should display page elements such as text and graphics and how to respond to user actions.)), there are some differences among browsers. Some support different versions of HTML and different HTML extensions (HTML extensions: A feature or setting that is an extension to the formal HTML specification. Extensions may not be supported by all Web browsers, but they may be used widely by Web authors. An example of an extension is marquee scrolling text.). Custom options can be set in browsers, such as the default text and background colors, and whether or not graphics are displayed. Consider testing your page in different browsers — some of which are available for downloading on the Web — and with different monitor settings, to see whether all of your page elements appear.

ShowI chose the Active Graphics option when I applied the theme, but none of the graphics are animated.

Theme graphics are animated only when you view the data access page in a Web browser, not in Microsoft Access.

ShowSpecifying a language

ShowMy data access page is displaying the wrong characters for a language.

If a data access page is encoded (encoding: The byte (or sequence of bytes) representing each character in an HTML or plain text file. Unicode encoding supports all characters in all languages and is readable in Microsoft Internet Explorer 4.0 or later and Netscape Navigator 4.0 or later.) for a different language, Microsoft Access tries to determine the language. If Access displays the wrong characters for that language when you open the page in a browser, you can select the language that you think the page is encoded in. Some languages have more than one encoding, so try each encoding until you can read the text.

  1. Open the data access page in Design view (Design view: A window that shows the design of these database objects: tables, queries, forms, reports, macros, and data access pages. In Design view, you can create new database objects and modify the design of existing ones.).

  2. On the Tools menu, click Options, and then click the General tab.

  3. Click Web Options, and then click the Encoding tab.

  4. Under Save this document as, select the language that you think the page is encoded in.

ShowThe name of a supporting folder for a data access page is in another language.

When you save your data access page in Design view (Design view: A window that shows the design of these database objects: tables, queries, forms, reports, macros, and data access pages. In Design view, you can create new database objects and modify the design of existing ones.), all supporting files — such as bullets, background textures, and graphics — are by default organized in a supporting folder. By default, the name of the supporting folder is the name of the data access page plus an underscore (_), a period (.), or a hyphen (-) and the word "files." The word "files" will appear in the language of the version of Microsoft Office that was used to save the file as a data access page. For example, suppose you use the Dutch language version of Office to save a file called Page1 as a data access page. The default name of the supporting folder would be Page1_bestanden.

 Note   If you save your data access page with a short file name (a maximum of eight characters, plus a three-character file extension) by clearing the Use long file names whenever possible check box in the Web Options dialog box, the supporting folder is the name of the data access page without the word "files."

ShowOpen and viewing

ShowI'm having problems viewing a data access page.

ShowI want to open an HTML file in Access, but it opens in another Office program.

In the Open dialog box (File menu), when you select an Hypertext Markup Language (HTML: The standard markup language used for documents on the World Wide Web. HTML uses tags to indicate how Web browsers should display page elements such as text and graphics and how to respond to user actions.) (HTML) file (also called a Web page) and click Open or double-click the file, the file opens in the program that created the file. For example, if you attempt to open an HTML format file that was created in Microsoft Word, the file opens in Word — not in Microsoft Access as a data access page.

To open an HTML file that was created in another Office program as a data access page in Access, right-click the file in the Open dialog box, point to Open with, and then click Microsoft Access on the shortcut menu.

 Note   If the file type that you are trying to open hasn't previously been associated with another program, instead of pointing to the Open with dialog, click the Open with dialog, and select Microsoft Access from the list of programs.

ShowWorking in Page view

ShowButtons are missing from the record navigation toolbar.

The designer of the data access page removed the buttons for that page or group.

ShowThe fields on the data access page are blank.

Possible reasons include:

  • The data access page you are displaying might be a data-entry form. You can enter your data in the blank fields.

  • The data access page contains a drop-down list that determines which records to display. From the drop-down list, select a group whose records you want to see on the page.

ShowI'm having problems editing data in a field in Page view.

There are several kinds of fields that you can't edit in Page view (Page view: An Access window in which you can browse the contents of a data access page. Pages have the same functionality in Page view as in Microsoft Internet Explorer 5.0 or later.). The following fields might display values just as regular fields do, but if you try to enter data into them, nothing happens:

You might be having problems entering dates in a field with the Date/Time data type (Date/Time data type: An Access database data type that is used to hold date and time information.). If you are entering dates by using the slash mark (/) format, don't enter a trailing slash mark. For example, 1/3 is valid, but 1/3/ is not valid.

ShowI sent a data access page as an e-mail message but the recipient can't read it.

To view a data access page sent as an e-mail message, the mail recipient must read the e-mail message by using one of the following:

  • Microsoft Outlook 2000 or later

  • Microsoft Outlook Express 5.0 or later

  • The combination of Microsoft Outlook 98 or later and Microsoft Internet Explorer 5.01 with Service Pack 2 (SP2) or later

  • The combination of Outlook Express 5.0 or later and Microsoft Internet Explorer 5.01 with Service Pack 2 (SP2) or later

If you are using a corporate intranet, you can publish your pages from a Web site located in a trusted security zone. This will help alleviate problems caused by the recipient's Internet Explorer security settings and thus improve performance of your pages. For more information about security levels and security zones, see Internet Explorer Help. For any specific page security requirements at your site, see your system administrator.

ShowI get a message when I attempt to enter data in Page view.

When you try to move out of a field after changing data, Microsoft Access validates the data, making sure that the value (value: The text, date, number, or logical input that completes a condition that a field must meet for searching or filtering. For example, the field Author with the condition equals must include a value, such as John, to be complete.) you entered is allowed in that field. If the value isn't allowed, Access alerts you. In order to move off the field, you must either change the data to an acceptable value or undo your changes.

A value might not be allowed in a field for the following reasons:

Access also validates data when you move out of a record. Before it saves a record, Access makes sure that your changes don't break any validation rules (validation rule: A property that defines valid input values for a field or record in a table, or a control on a form. Access displays the message specified in the ValidationText property when the rule is violated.) set in the ValidationRule property for the record. Additionally, if the table you are editing has a primary key (primary key: One or more fields (columns) whose values uniquely identify each record in a table. A primary key cannot allow Null values and must always have a unique index. A primary key is used to relate a table to foreign keys in other tables.) or unique index (unique index: An index defined by setting a field's Indexed property to Yes (No Duplicates). A unique index will not allow duplicate entries in the indexed field. Setting a field as the primary key automatically defines the field as unique.), Access makes sure that the record you are editing doesn't have the same value for the fields as another record in the table. If the record can't be saved, you must either make any necessary corrections, or cancel your changes by clicking Undo Button image or pressing ESC.

 Note   The data access page might contain a PivotTable Component, Spreadsheet Component, or Chart Component, which has its own troubleshooting information. For more information, click Help Button image on the toolbar for the PivotTable list (PivotTable list: A Microsoft Office Web Component that is used to analyze data interactively on a Web page. Data displayed in a row and column format can be moved, filtered, sorted, and calculated in ways that are meaningful for your audience.), spreadsheet (Spreadsheet Component: A Microsoft Office Web Component that provides the interactive functionality of a spreadsheet on a Web page.You can enter data, add formulas and functions, apply filters, change formatting, and recalculate.), or chart (Chart Component: A Microsoft Office Web Component that provides interactive charting functionality on a Web page. You can illustrate data in a chart and give users the ability to change data, change chart options, and see changes reflected in the chart.), and then search for "troubleshooting."

advertisement