Results 1 to 14 of 14
  1. #1
    cenr-renauds is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Aug 2017
    Posts
    7

    Question MS Access's user interface to interact with data from a MySQL database?

    Hi,
    On Windows 7, I must connect a MS Access client (.accdb), where all the forms, VBA scripts, macro, and reports are, to a MySQL Database instead of a MS Access database (.mdb). Here what I have tried so far.
    I created a connection with MySQL Connector /ODBC 5.3 Unicode driver (https://dev.mysql.com/downloads/connector/odbc/5.3.html) to the MySQL database with success.
    After in MS Access 2013, I created a new database (.mdb) by linking to my local machine ODBC Connector. I can see the data in each table I have linked.
    However, I didn’t find where to change the connection’s setup of the MS Access client (.accdb) so it uses the data from the new .mdb file linked to the MySQL database. Where do we do that?
    Is there another, maybe easier way to use MS Access's user interface to interact with data from a MySQL database?


    Best Regards,
    Sébastien

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    I'm confused (not unusual). You are trying to link an accdb to an mdb which is in turn linked to MySQL? What's the purpose of the mdb? If the forms and such are in the accdb, it should contain the tables linked to MySQL.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    cenr-renauds is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Aug 2017
    Posts
    7

    Exclamation

    Quote Originally Posted by cenr-renauds View Post
    Hi,
    On Windows 7, I must connect a MS Access client (.accdb), where all the forms, VBA scripts, macro, and reports are, to a MySQL Database instead of a MS Access database (.mdb). Here what I have tried so far.
    I created a connection with MySQL Connector /ODBC 5.3 Unicode driver (https://dev.mysql.com/downloads/connector/odbc/5.3.html) to the MySQL database with success.
    After in MS Access 2013, I created a new database (.mdb) by linking to my local machine ODBC Connector. I can see the data in each table I have linked.
    However, I didn’t find where to change the connection’s setup of the MS Access client (.accdb) so it uses the data from the new .mdb file linked to the MySQL database. Where do we do that?
    Is there another, maybe easier way to use MS Access's user interface to interact with data from a MySQL database?
    Best Regards,
    Sébastien
    Actually, I forgot to mention that I had already tried to link the .accdb to MySQL by linking to my local machine ODBC Connector. In that case, the .accdb's forms kept trying to connect to the previous .mdb database. Where can I change this configuration? Thanks!

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    The firm's source is set in its Record Source property. Try changing that to the directly linked table.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    cenr-renauds is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Aug 2017
    Posts
    7
    The MySQL database is the converted .mdb database. All the tables and their fields are the same.
    In the forms and the report, the record sources are as previously. However, the accdb still try to open and access the .mdb database for some reason. Can it be a cached data in memory? Thanks again!

  7. #7
    cenr-renauds is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Aug 2017
    Posts
    7
    Different platforms, different people... Is there a problem in posting our question on different forums? If it's the case, I'm sorry, I didn't know. Thanks!

  8. #8
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    You need to find where it's referring to the mdb. Could be a linked table, somewhere in code, maybe a VBA reference. How do you know it's trying to open the mdb? If you delete/move the mdb, what kind of error do you get? That might lead to where the issue is.

    Here are thoughts on cross posting:

    cross posters
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  9. #9
    cenr-renauds is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Aug 2017
    Posts
    7

    Thumbs up

    Hi, I have redone all the procedure to connect the Access UI .accdb to the MySQL database via connector ODBC:
    https://dev.mysql.com/doc/connector-...ed-tables.html
    It didn't work before I restarted Access. After, it worked... Maybe there is a cached activated on my Access's system? Thanks for your help!
    Also thank you for the info about cross posting.

  10. #10
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    I have heard of Access using cached connections before. Glad you got it working.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  11. #11
    cenr-renauds is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Aug 2017
    Posts
    7
    Yes! And how do we mark this post as resolved on this forum?

  12. #12
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    With the Thread Tools dropdown at the top of the thread.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  13. #13
    cenr-renauds is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Aug 2017
    Posts
    7
    Ok! Thanks again!

  14. #14
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    No problemo!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. User Friendly Interface for MS Access 2010
    By Lou_Reed in forum Access
    Replies: 1
    Last Post: 04-21-2016, 01:23 PM
  2. Replies: 4
    Last Post: 03-31-2015, 01:20 PM
  3. Replies: 1
    Last Post: 02-08-2014, 10:49 AM
  4. Replies: 2
    Last Post: 07-25-2013, 05:18 AM
  5. access user interface
    By nunuwawa in forum Access
    Replies: 1
    Last Post: 01-01-2012, 10:56 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums