Solved

Access front-end and MySQL and Access(Jet) back-ends

Posted on 2012-04-08
8
427 Views
Last Modified: 2012-07-16
Hi All,

System is outgrowing Access's db limitations – 34 back end databases @ 20Gb, and with single tables approaching 1.8Gb it’s time to change! Also more interested in the increased security, stability and multi-user capabilities. Hoping to get performance improvements too as some queries are taking a fair while to process.

I still intend to use Access as a front end, and migrate the back-ends over to MySQL – probably in stages, and starting with an important main 1.8Gb table/db. I appreciate this is a well-asked about area, but I have a few questions which I can’t seem to understand properly and would appreciate answers and any general discussion/advice. I know how to export the Access/JET dbs to MySQL in general.

1.      Is using MySQL with Access as simple as linking the MySQL dbs through the External Data->Import->ODBC instead of linking to the Access dbs? (I doubt it!)

2.      At the moment (almost)all data editing etc in VBA is done through DAO:
Dim dbs as DAO.Database
Dim rst as DAO.Recordset
Set dbs = CurrentDB
Set rst = dbs.OpenRecordset(x)
 Will this be a problem//still work?

3.      Various queries and VBA functions on datasets have functions which are Access-specific (CInt, etc). Will these still work or will the MySQL equivalents have to be used?

4.      As mentioned, currently spread across 34 Access/JET back ends for space and organisational reasons. Should the data be kept in a single MySQL db/multiple/doesn’t matter?

5.      Will there be any problem working an Access front end with backends in both Access/Jet and MySQL, considering queries will be using tables from both

I’m sure there are more / any general advice appreciated!

Thanks in advance.
Katerina.
0
Comment
Question by:katerina-p
  • 3
  • 2
8 Comments
 
LVL 12

Assisted Solution

by:danishani
danishani earned 250 total points
ID: 37822290
You can take a look at below thread for a start, migrating MS Access to MySQL, ODBC connection etc.:
http://forums.mysql.com/read.php?65,148441,148441

You can still use DAO to connect to mySQL, or ADO, just depends on which you prefer, as you already use DAO that will be no problem.

For Functions and Operators being used in MySQL, check below thread:
http://dev.mysql.com/doc/refman/5.0/en/functions.html

Alternatively, you can migrate to SQL Server Express, which is free also.
http://www.microsoft.com/sqlserver/en/us/editions/express.aspx

Hope this helps,
Daniel
0
 
LVL 30

Accepted Solution

by:
hnasr earned 250 total points
ID: 37822393
Quick response:
1 yes
2 yes
3 yes
4 Can't see why not. You need to try.
5 Generally No
0
 

Author Comment

by:katerina-p
ID: 37822835
Thanks Daniel.

I expect table (and hence database) sizes of up to 20Gb+, and I understand SQL Server Express has a limit (4/10Gb?) so that rules that out.

I'm aware in general of the function differences - when running a query in Access, will I have to ensure that queries on Jet tables use Access functions and queries on MySQL tables use MySQL functions? (As queries will intially pull from both Access/Jet and MySQL, this would mean that different functions in the same query depending on the table that the field is in?)

hnasr, thanks for your time, but my points 2, 3, and 4 had two questions so I'm unsure to which you were answering!

I've seen people establishing ODBC connections to MySQL in VBA - why would this need to be done if you can link the ODBC tables and use DAO/ADO?
0
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 
LVL 30

Expert Comment

by:hnasr
ID: 37822882
Quick response:
1 yes
2 yes (works with no problems)
3 yes - no need for equivalents
4 Can't see why not be as you prefer. You need to try.
5 Generally No
0
 

Author Comment

by:katerina-p
ID: 37822907
Thanks. Will there be a performance increase linking to/using MySQL instead of Access/Jet?
0
 

Author Comment

by:katerina-p
ID: 37832144
I've exported the [main] table to a local MySQL db, set up the PK and indexes. Linked to it in Access via ODBC.

I noticed huge delays opening the table, and I've run a quick query:-

Dim dbs As DAO.Database
Dim rst As DAO.Recordset
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset(x)
rst.MoveFirst
Do While Not rst.EOF
  rst.MoveNext
Loop
rst.Close


For the table in a local Access/Jet db, this takes 1 second. For the same table in a local MySQL db, it takes 50s! Why would this be?

Thanks.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

919 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now