code_junkie

What is the best way to synchronize data between MS Access and MySQL?

Nov 13th, 2011
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. Set db = CurrentDb
  2. strSQL = "Insert INTO [ODBC;DSN=DSNName;].NameOfMySQLTable " _
  3. & "Select AnyField As NameOfMySQLField FROM AnyAccessTable;"
  4.  
  5. db.Execute strSQL, dbFailOnError
  6. End Sub
  7.  
  8. RecordChangeID (int) - Primary Key (Autonumber)
  9. TableName (varchar(250)) - Name of table that changed
  10. RecordID (int) - ID of the record in that table that was added / modified
  11. RecordAction (char(1)) - 'A' if add, 'M' if modified or 'D' if deleted
  12.  
  13. LastRecordChangeID (int) - ID of the last Record Change
  14. you exported in the Record Changes table
Add Comment
Please, Sign In to add comment