Microsoft Access
  Home arrow Microsoft Access arrow Page 2 - An Access Front-End to MySQL
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Moblin 
JMSL Numerical Library 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MICROSOFT ACCESS

An Access Front-End to MySQL
By: Peter Lavin
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 22
    2004-07-28

    Table of Contents:
  • An Access Front-End to MySQL
  • Preliminary Steps
  • Limitations
  • State of the Union

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    An Access Front-End to MySQL - Preliminary Steps


    (Page 2 of 4 )

    I’ll give a quick overview of how to connect to your MySQL database, and I'll try not to repeat information that is readily available elsewhere. For instance, information on creating an ODBC connection is available on this site in the article, “Using MyODBC To Access Your MySQL Database Via ASP”.

    Obviously, the first thing you will need is a MySQL database. My primary concerns are with online databases, but if you don’t have one, a local database will do for testing purposes. However, I should note that to connect to an online database you will need to be able to access it through the domain name and not, as you might from a script on the server, using “localhost”.

    If you don’t already have the ODBC driver for MySQL installed, you can download it from the URL:

    http://www.mysql.com/products/connector/odbc/.

    At the time of writing, the name and version number is “MySQL ODBC Driver 3.51”. Once this is installed, check that a driver with this name shows up in the Drivers’ window of the ODBC administrator. You can see the article referenced above for information about how to create a system or a user DSN. You are now ready to use Access as a front-end to MySQL.

    Connecting

    Let’s quickly go through the steps necessary to connect to your MySQL database. Open Access and choose the “More Files” option from the dialogue box. Drop down the “Files of Type” list box, go to the bottom and choose “ODBC Databases”. Click on the tab “Machine Data Source” and choose the connection name you just created with the ODBC administrator. From here on it should be pretty straightforward although you may be asked to create primary keys for any tables without unique identifiers.

    Following these steps will create a database in “My Documents” with the name “ODBC1.mdb” or a variant on that name. This database will then open showing all the tables with a globe icon to their left. This icon indicates that the tables are external, linked tables.

    Double clicking a table name will open it in that familiar Access tabular format. Records can be added or deleted exactly as they would if the database was a native Access one.

    More Microsoft Access Articles
    More By Peter Lavin


       · One other thing worth mentioning is that if you use pass thru queries you can use...
       · Thanks for the article. I also found that an effective way to transfer a single...
       · 
       · 
       · Question?? I am trying to add records to a Mysql table using access. The primary...
       · RTFM ;-) *kidding*Have one more dummy column with TIMESTAMP as the data type,...
       · I have Access set up as a front end to a MySQL database. I have a form in Access...
       · I have Access set up as a front end to a MySQL database. I have a continuous...
       · The problem was fixed. When I created the column with TIMESTAMP as the data...
     

    MICROSOFT ACCESS ARTICLES

    - Linking SQL Express 2005 Tables to MS Access...
    - Working with Access Projects in Access 2007
    - Exploring Access 2007
    - Working with Stored Procedures in an MS Acce...
    - Creating and Using Action Queries
    - Creating Data Access Pages with Charts using...
    - Advanced Ideas using VBA
    - VBA Details
    - Updating Records in MS Access
    - Using ADO`s Record Object with URLs
    - Exporting XML from MS Access 2003
    - Importing XML into MS Access 2003
    - On Using Pass-through Queries in MS Access
    - Distributed Queries in MS Access
    - Configuring a Linked Microsoft Access Server...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway