BUG: You receive an "Bad File Name or Number" error message when you upsize databases with Data Access Pages stored on server
This article was previously published under Q282380 Moderate: Requires basic macro, coding, and interoperability
skills. This article applies only to a Microsoft Access database (.mdb). On This PageSYMPTOMS When you use the Upsizing Wizard to convert a Microsoft
Access database that contains data access pages to an Access project, you may
receive the following error message:
UT_HandleADPDataPages Bad file name or number 52 CAUSE This behavior can occur because the data access pages are
linked by using a Web server path such as http://, ftp://, or https://. The
Upsizing Wizard does not properly handle these paths when it creates the new
project. RESOLUTION To work around this issue, use one of the following
methods. Method 1: Re-create LinksRe-create the links to the existing data access pages after the new Access project has been created.Method 2: Use VBA CodeUse Microsoft Visual Basic for Applications (VBA) code to re-create pages whose links are not copied correctly by the Upsizing Wizard.NOTE: This code will modify existing data access pages. It is recommended that you create backups of your pages before running this code. To relink the pages using VBA code, follow these steps: Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
STATUSMicrosoft
has confirmed that this is a problem in the Microsoft products that are listed
at the beginning of this article.
MORE INFORMATION When you use the Upsizing Wizard to convert an Access
database to an Access project, objects in the database are copied to the
corresponding objects in the new project. Page objects are actually links or
shortcuts to Web pages stored outside of the database file. The pages may be
stored locally, on a shared network resource and accessed through the file
system, or on a Web server and accessed through an Internet protocol such as
HTTP, HTTPS, or FTP. When page objects are copied, the Upsizing Wizard is able to copy the links only when both of the following conditions are true:
Steps to Reproduce the Problem
| Article Translations
|

Back to the top
