Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


MySQL 5.1 and MS Access Insert on Linked Table Error

Posted on 2012-09-18
Medium Priority
Last Modified: 2012-09-19
Say, The MS Access sql code was working fine when connecting to linux My SQL.
Moved DB to Windows 7 (latest My SQL server).
I can access data natively no problem and even add records from within Access. When I execute sql codes get 3155 ODBC --insert on a linked tabe failed...
Any ideas?
Question by:shaunwingin
  • 2

Expert Comment

ID: 38411594
Which MySQL ODBC driver are you using? The older driver (3.51) is more stable. I've had issues with the newer driver as well, and had to revert to the older one.
LVL 85

Assisted Solution

by:Scott McDaniel (Microsoft Access MVP - EE MVE )
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 750 total points
ID: 38411848
Many times a SQL table will require a TimeStamp field for Access to be able to update it. Also, if these are linked tables, be sure that the Primary Key has been properly represented in the linked table. You can open the link in Design view (Access will complain, but do it anyway), and then review the Indexes - is the Primary Key Index there? If not, delete the link and recreate it, and be sure that the indexes are represented correctly.

Author Comment

ID: 38413083
I'm using 5.1
Traced issue to allow nul not being enabled on certain data fields in the table.
Is there a setting to handle data which is blank but allow null is not checked?

Accepted Solution

JulieHolmes earned 750 total points
ID: 38413553
If the data is blank, you may have to pass an empty string or a space to ensure the db sees it as blank data rather than null. I've had to do that as well. And I've also dealt with the TimeStamp requirement as suggested by LSM; the inclusion of a TimeStamp field in the MySQL table has alleviated many record update headaches.

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Implementing simple internal controls in the Microsoft Access application.
A Case Study of using the Windows API to provide RS232 communications capability in Access without the use of Active-X controls.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question