ACC2000: Properties of the DataAccessPages Object May Return Error MessageID: Q223205
|
When you use a property of the DataAccessPages object, you may get one of the following error messages:
Run-time error '2018':
The data access page name 'page name' you entered is misspelled or refers to a data access page that isn't open or doesn't exist.
-or-
Run-time error '2019':
The number you used to refer to the data access page is invalid.
You get one of these error messages when you try to use a property of the DataAccessPages object and the data access page is open in Microsoft Internet Explorer. The DataAccessPages object is looking for pages that are open in Microsoft Access. Because the page is open in Internet Explorer, and not in Access, the DataAccessPages object does not recognize it as being open.
NOTE: When you click the Web Page Preview command on the File menu, the page does not open in Access. It opens in Internet Explorer.
To use one of these properties, you must have the page open in Design view or Page view in Access.
The properties of the DataAccessPages object with which you could see these errors are as follows:
?Application.DataAccessPages(0).ConnectionString
Note that this returns the connection string.
?Application.DataAccessPages(0).ConnectionString
Note that this returns the second error listed in the "Symptoms" section.
Additional query words: DAP prb
Keywords : kberrmsg kbdta AccDAP DAPProb
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: August 5, 1999