Connecting Tech Pros Worldwide Help | Site Map

MS Access linked tables MYSQL

 
LinkBack Thread Tools Search this Thread
  #1  
Old May 15th, 2006, 09:05 PM
csgraham74@gmail.com
Guest
 
Posts: n/a
Default MS Access linked tables MYSQL

Hi Folks,

im using MS Access as a front end to link to MYSQL. although this is
possibly a MYSQL issue i thought someone would be able to help me. the
error message "ODBC--insert on a linked table 'tablname' failed" is
displayed when i attempt to insert records to the MYSQL table.

Does anyone know of a way round this ?? im using the most recent MYSQL
driver and i have only text fields in my insert statement. Is there an
Access setting or permission that i must change

thanks in advance

CG


  #2  
Old May 15th, 2006, 09:35 PM
Larry Linson
Guest
 
Posts: n/a
Default Re: MS Access linked tables MYSQL


<csgraham74@gmail.com> wrote in message
news:1147726709.116174.41660@v46g2000cwv.googlegro ups.com...[color=blue]
> Hi Folks,
>
> im using MS Access as a front end to link to MYSQL. although this is
> possibly a MYSQL issue i thought someone would be able to help me. the
> error message "ODBC--insert on a linked table 'tablname' failed" is
> displayed when i attempt to insert records to the MYSQL table.
>
> Does anyone know of a way round this ?? im using the most recent MYSQL
> driver and i have only text fields in my insert statement. Is there an
> Access setting or permission that i must change[/color]

Some server DBs require that you have a Primary Key defined on each Table
that you update -- I don't know if that is the case with MySQL. That should
be a quick thing to check.

Larry Linson
Microsoft Access MVP


  #3  
Old May 16th, 2006, 03:05 PM
chucher
Guest
 
Posts: n/a
Default Re: MS Access linked tables MYSQL

You may be using a constraint in one of your fields (maybe a
relationship between two tables). When you are inserting data into the
table you aren't inserting it into the field with the constraint

  #4  
Old May 16th, 2006, 05:15 PM
Bri
Guest
 
Posts: n/a
Default Re: MS Access linked tables MYSQL

csgraham74@gmail.com wrote:[color=blue]
> Hi Folks,
>
> im using MS Access as a front end to link to MYSQL. although this is
> possibly a MYSQL issue i thought someone would be able to help me. the
> error message "ODBC--insert on a linked table 'tablname' failed" is
> displayed when i attempt to insert records to the MYSQL table.
>
> Does anyone know of a way round this ?? im using the most recent MYSQL
> driver and i have only text fields in my insert statement. Is there an
> Access setting or permission that i must change[/color]

As Larry mentioned, you need to have a Primary Key defined in the Table.
If you don't have one, add in a new field of type INTEGER and set the
AUTO_INC. Make this your PK. You also need to create a TimeStamp field
(with a default value of CURRENT_TIMESTAMP) if you plan to edit the
records later (needed to control record locking).

--
Bri

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.