Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How Insert Access table data into mysql Table? 2

Status
Not open for further replies.

CharlesFS

Technical User
Dec 14, 2008
39
BR
Hy, i need a vba code to insert all data from access table into mysql table.

I tryed "DoCmd.TransferDatabase acExport" but this send the table object to mysql.


Help please.
 
Remou can you post sample code? Please.

Thanks!
 
SOLVED!!!!!!!!!!!!

My soluction to insert access table data into mysql table->
'******************************************
Sub INSERT()
DoCmd.SetWarnings False

strSql = "insert INTO [ODBC;DSN=Database;DATABASE=Base;_ Trusted_Connection=Yes;].TblDestiny select * FROM TblSource;"

DoCmd.RunSQL strSql

DoCmd.SetWarnings True
End Sub
'******************************************

Thanks Remou!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top