Select the product you need help with
ACC2000: How to Create a Customized "Attach ODBC Table" FormArticle ID: 210295 - View products that this article applies to. This article was previously published under Q210295 Advanced: Requires expert coding, interoperability, and multiuser skills.
This article applies only to a Microsoft Access database (.mdb). On This PageSUMMARY
This article describes how to create a form that uses the TransferDatabase command to attach tables from an Open Database Connectivity (ODBC) data source. Creating this form provides more control over the tables than the Link dialog box and is faster than modifying the AttachableObjects setting in the registry.
MORE INFORMATIONMicrosoft 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.
To create a sample form to make linked ODBC tables, you must first create a table or query that contains the names of the tables on the server. Then you can create a form based on that query to create the links to the tables you select from a list.
Create the Query Containing the Table ListTo create a query that lists the tables on a server, follow these steps:
Create the Form to Use to Attach TablesTo create a form that you can use to attach tables to your current database, follow these steps:
REFERENCESFor more information about TransferDatabase Method, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type TransferDatabase Method in the Office Assistant or the Answer Wizard, and then click Search to view the topic. PropertiesArticle ID: 210295 - Last Review: June 23, 2005 - Revision: 3.0
|


Back to the top








