R
ReetP
Guest
Unfortunately coding is not my forte and I wondered if someone can assist me / hold my hand through this ? Have read all over the place but cannot see the wood for the trees.
I have two linked tables. One is ODBC to a MySQL Db and the other ODBC to Sage. I could probably do this directly between the two databases, but that would require some direct SQL coding, so I thought it might be easier to use Access to bridge. Simply, all I want to be able to do is :
1. Populate the MySQl Db from the Sage one - I seem to have managed this with a simple append query
2. Update any changes to field data from the Sage on to the MySQL one.
Two points with this one - the existing data may change so an update query is required, and new records may be added which would require an append. Not sure whether this can be combined so it does it all in one go.
I can view all the data I need quite happily from either table. The MySQL Db has a primary key set but the Sage one does not, and I cannot change that. I don't know whether that makes any difference
I have managed to get the update query to work once, but lost the settings and cannot recreate it. Also, I cannot get the append to add new records that appear.
Any help would be much appreciated as this has been driving me nuts for weeks !
Tables :
From Sage :
Table name : Stock
Fields : Stock Code (unique), Desciption, Web Description, Web Location, Web Pulish (numeric 0 or 1)
From MySQL :
Table name : SQL_STOCK
Fields : ID (Primary key), Stock Code (unique), Desciption, Web Description, Web Location, Web Pulish (numeric 0 or 1)
I have two linked tables. One is ODBC to a MySQL Db and the other ODBC to Sage. I could probably do this directly between the two databases, but that would require some direct SQL coding, so I thought it might be easier to use Access to bridge. Simply, all I want to be able to do is :
1. Populate the MySQl Db from the Sage one - I seem to have managed this with a simple append query
2. Update any changes to field data from the Sage on to the MySQL one.
Two points with this one - the existing data may change so an update query is required, and new records may be added which would require an append. Not sure whether this can be combined so it does it all in one go.
I can view all the data I need quite happily from either table. The MySQL Db has a primary key set but the Sage one does not, and I cannot change that. I don't know whether that makes any difference
I have managed to get the update query to work once, but lost the settings and cannot recreate it. Also, I cannot get the append to add new records that appear.
Any help would be much appreciated as this has been driving me nuts for weeks !
Tables :
From Sage :
Table name : Stock
Fields : Stock Code (unique), Desciption, Web Description, Web Location, Web Pulish (numeric 0 or 1)
From MySQL :
Table name : SQL_STOCK
Fields : ID (Primary key), Stock Code (unique), Desciption, Web Description, Web Location, Web Pulish (numeric 0 or 1)