How to Set Up Microsoft Access to Work with MySQL using MyODBC

August 18th, 2005 by Erich Kolb

The following must be done on your client PC in order to make Microsoft Access work with MyODBC. If you are using Access 2000, you should get and install the newest (version 2.6 or higher) Microsoft MDAC (Microsoft Data Access Components) from http://www.microsoft.com/data/. This fixes a bug in Access that when you export data to MySQL, the table and column names aren’t specified. Another way to work around this bug is to upgrade to MyODBC 2.50.33 and MySQL 3.23.x, which together provide a workaround for the problem. You should also get and apply the Microsoft Jet 4.0 Service Pack 5 (SP5) which can be found at http://support.microsoft.com/default.aspx?scid=kb;EN-US;q239114. This fixes some cases where columns are marked as #DELETED# in Access. Note: If you are using MySQL 3.22, you must to apply the MDAC patch and use MyODBC 2.50.32 or 2.50.34 and up to work around this problem. Install the latest version of MySQL from http://dev.mysql.com/downloads/. Install the latest version of MyODBC 3.51 or 2.50 from http://dev.mysql.com/downloads/connector/odbc/. For all Access versions, you should enable the Return matching rows option. Start working with Access as the front-end for MySQL Server through MyODBC.

Spread the word: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Technorati
  • del.icio.us
  • YahooMyWeb
  • co.mments
  • Furl

How to Import or Link MySQL Database Tables to Access

August 18th, 2005 by Erich Kolb

You cannot export a table or query to MySQL database unless you have installed the MyODBC. To import or link a table(s) from MySQL to Access, follow the instructions: Open a database, or switch to the Database window for the open database. To import tables, on the File menu, point to Get External Data, and then click Import. To link tables, on the File menu, point to Get External Data, and then click Link Tables. In the Import (or Link) dialog box, in the Files Of Type box, select ODBC Databases (). The Select Data Source dialog box lists the defined data sources The Select Data Source dialog box is displayed; it lists the defined data sources for any ODBC drivers installed on your computer. Click either the File Data Source or Machine Data Source tab, and then double-click the MyODBC or MyODBC 3.51 data source that you want to export to. To define a new data source for the MyODBC or MyODBC 3.51 driver, please Section 25.1.9.2, â¿¿Configuring a MyODBC DSN on Windows⿝. If the ODBC data source that you selected requires you to log on, enter your login ID and password (additional information might also be required), and then click OK. Microsoft Access connects to the MySQL server through ODBC data source and displays the list of tables that you can import or link. Click each table that you want to import or link, and then click OK. If you’re linking a table and it doesn’t have an index that uniquely identifies each record, then Microsoft Access displays a list of the fields in the linked table. Click a field or a combination of fields that uniquely identifies each record, and then click OK.

Spread the word: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Technorati
  • del.icio.us
  • YahooMyWeb
  • co.mments
  • Furl