MySQL
  Home arrow MySQL arrow Page 5 - MySQL and ODBC
Dev Shed Forums 
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Mobile Linux 
App Generation ROI 
VPS Hosting 
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? 
MYSQL

MySQL and ODBC
By: W.J. Gilmore
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 45
    2001-02-12

    Table of Contents:
  • MySQL and ODBC
  • The Sample Project
  • The MS Access GUI
  • Importing and Linking the Data Source
  • Updating The Database
  • Conclusion

  • 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


    MySQL and ODBC - Updating The Database


    (Page 5 of 6 )

    Figure 1-7 shows a simple GUI created using the MS Access Form Wizard. After creating this GUI, I used it to insert a sample record into the database.

    Figure 1-7: Clients GUI



    Create a GUI similar to the one shown above, and experiment with inserting information into it. Immediately upon doing so, connect to the MySQL database and execute a select * query on the clients table. The table will show that it has been updated with the information entered using the MS Access GUI! Figure 1-8 shows the clients table as seen from MS Access after entering one record. Following Figure 1-8 is a view of the MySQL clients table after executing a SELECT * query.

    Figure 1-8: View of the clients table from MS Access



    mysql> select * from clients; +----------+-----------------+-------+------------+----------------------------+ | clientId | name | state | telephone | email | +----------+-----------------+-------+------------+----------------------------+ | 1 | Widget Fanatics | OH | 4125555678 | widgets@widgetfanatics.com | +----------+-----------------+-------+------------+----------------------------+

    To convince yourself that the synchronous updates occur regardless of whether the update takes place from MS Access or directly from MySQL, go ahead and delete the newly added row from within the MySQL monitor. Then return to MS Access and reopen the clients table. You will see that the data has disappeared!

    For those readers new to MS Access, take some time to experiment with the various Wizards made available from within the program. Using these Wizards will better acquaint you with how Access works. However, to tweak the various components of the Access interface to your specific needs, you will need to learn how to modify the component properties manually. To learn more about doing so, I would suggest searching the Web and consider purchasing one of the many books available on the subject.

    More MySQL Articles
    More By W.J. Gilmore


     

       

    MYSQL ARTICLES

    - MySQL Server Tuning Tips and Tricks
    - MySQL Query Optimizations and Schema Design
    - MySQL Benchmarking Tools and Utilities
    - MySQL Benchmarking Concepts and Strategies
    - Take Some Load off MySQL with MemCached
    - MySQL Table Prefix Changer Tool in PHP
    - Using the SIGNAL Statement for Error Handling
    - Error Handling Examples
    - Error Handling
    - Completing a Search Engine with MySQL and PH...
    - Paginating Result Sets for a Search Engine B...
    - Building a Search Engine with MySQL and PHP 5
    - Using Boolean Operators for Full Text and Bo...
    - PHP, MySQL and the PEAR Database
    - Working with PHP and MySQL





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
    Stay green...Green IT