Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.
Forum Search
Forum Statistics
UsersTotal Post History
- Posts:
- 78230
- Topics:
- 17811
7-Day Post History
- New Posts:
- 36
- New Topics:
- 13
- Active Topics:
- 15
Our newest member
Other
-
FAQ
All times are UTC [ DST ]
Google Ads
FAQ: Access and MySQL
Forum rules
Please:
- include the version of Access you are using.
- include the exact details of any error.
- highlight or draw attention to the line of code where the error occurred.
- read the FAQs, where these and other points are mentioned:
Topic565: General FAQ for Access
Please:
- include the version of Access you are using.
- include the exact details of any error.
- highlight or draw attention to the line of code where the error occurred.
- read the FAQs, where these and other points are mentioned:
Topic565: General FAQ for Access
4 posts • Page 1 of 1
Please wait...
FAQ: Access and MySQL
Access Version: 2000
You can insert data from Access into MySQL using DSN.
You will need:
DSN=Suitable system DSN for MySQL
Then, depending on your set-up, you can incude:
Database=MySQLDatabaseName;
Trusted_Connection=Yes;
I have not been playing around with this very long, but as far as I can tell, you must have matching field names, however, you can use aliases to make the names match.
You can insert data from Access into MySQL using DSN.
You will need:
DSN=Suitable system DSN for MySQL
Then, depending on your set-up, you can incude:
Database=MySQLDatabaseName;
Trusted_Connection=Yes;
- Set db = CurrentDb
- strSQL = "Insert INTO [ODBC;DSN=DSNName;].NameOfMySQLTable " _
- & "Select AnyField As NameOfMySQLField FROM AnyAccessTable;"
- db.Execute strSQL, dbFailOnError
- End Sub
I have not been playing around with this very long, but as far as I can tell, you must have matching field names, however, you can use aliases to make the names match.
x
-

Remou - LTD Admin

-










- Posts: 5102
- Joined: Sun Oct 14, 2007 11:26 am
-

Emtucifor - Guru

-










- Posts: 2830
- Joined: Fri May 30, 2008 9:30 pm
- Location: California
Re: FAQ: Access and MySQL
I though dyslexia was one of the few problems I had avoided. Oh well, you are never to old to forget.x
-

Remou - LTD Admin

-










- Posts: 5102
- Joined: Sun Oct 14, 2007 11:26 am
Re: FAQ: Access and MySQL
I really thought you meant you could use DNS somehow. 

God cries a little bit every time someone builds a database.
-

Emtucifor - Guru

-










- Posts: 2830
- Joined: Fri May 30, 2008 9:30 pm
- Location: California
4 posts • Page 1 of 1

LTD Social Sitings
Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.