We never stop looking ... ...for a better way

Welcome to Woods Applied Technologies
Saturday, September 04 2010 @ 02:22 AM MDT

MyODBC

research librarySome Tips on MyODBC and AccessAccess To make Access work:
  • If you are using Access 2000, you should get and install the newest Microsoft MDAC (Microsoft Data Access Components) from http://www.microsoft.com/data. This will fix the following bug in Access: when you export data to MySQL, the table and column names aren't specified. Another way to around this bug is to upgrade to MyODBC Version 2.50.33 and MySQL Version 3.23.x, which together provide a workaround for this bug! Note that if you are using MySQL Version 3.22, you must to apply the MDAC patch and use MyODBC 2.50.32 or 2.50.34 and above to go around this problem.
  • Set the ``Return matching rows'' MyODBC option field when connecting to MySQL.
  • You should have a primary key in the table. If not, new or updated rows may show up as #Deleted#.
  • You should have a timestamp in all tables you want to be able to update. For maximum portability TIMESTAMP(14) or simple TIMESTAMP is recommended instead of other TIMESTAMP(X) variations.
  • Only use double float fields. Access fails when comparing with single floats. The symptom usually is that new or updated rows may show up as #Deleted# or that you can't find or update rows.
  • If you still get the error Another user has changed your data after adding a TIMESTAMP column, the following trick may help you: Don't use table data sheet view. Create instead a form with the fields you want, and use that form data sheet view. You should set the DefaultValue property for the TIMESTAMP column to NOW(). It may be a good idea to hide the TIMESTAMP column from view so your users are not confused.
  • Access on NT will report BLOB columns as OLE OBJECTS. If you want to have MEMO columns instead, you should change the column to TEXT with ALTER TABLE.
  • Access can't always handle DATE columns properly. If you have a problem with these, change the columns to DATETIME.
  • In some cases, Access may generate illegal SQL queries that MySQL can't understand. You can fix this by selecting "Query|SQLSpecific|Pass-Through" from the Access menu.
  • If you have in Access a column defined as BYTE, Access will try to export this as TINYINT instead of TINYINT UNSIGNED. This will give you problems if you have values > 127 in the column!
  • If you are using Access 7.0, You should use the option flag Return matching rows.
  • If you are using Access 2.0, You should use the option flags Return matching rows and Simulate ODBC 1.0.

from http://www.gw3n.com/mysql/manual_ODBC.html

Story Options

Trackback

Trackback URL for this entry: http://www.watcorp.com/trackback.php?id=20050210123657806

No trackback comments for this entry.
MyODBC | 1 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
MyODBC
Authored by: cary on Sunday, April 17 2005 @ 12:00 AM MDT
I am tired of fighting with MyODBC.....