I have a products table in a local MS Access invoicing application. I also have a products table in a “mysql” database on a server. Both are linked tables in our BOM/production database (also MS Access). Both contain pretty much the same info though the structures are diferent. I must “respect” the structures of both becuase they reside in 3rd party database apps that would not function if I changed their structure. I need to “synch” the tables (not necesarily in real time) so that both tables have the latest products, descriptions and product specs. Is there a way to do this??
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
synch two linked tables different structure (97sp2)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » synch two linked tables different structure (97sp2)
- This topic has 12 replies, 2 voices, and was last updated 21 years, 3 months ago.
Viewing 1 reply threadAuthorReplies-
WSHansV
AskWoody Lounger -
WSjpgus
AskWoody Lounger -
WSHansV
AskWoody LoungerMarch 3, 2004 at 6:47 pm #793684More questions…
1. Do the records contain a “last modified” date/time field? If so, that would help determining which records have to be synchronized.
2. Is there an easy way to match records, i.e. some kind of unique ID that occurs in both tables, or do you have to find probable matches by comparing a number of fields? -
WSjpgus
AskWoody LoungerMarch 4, 2004 at 1:52 pm #794203Hans.
Answers.
1) the mysql table has a date added field and a last modified field
The Access table has a stock-take date which seems to default to the date a product is added and probably changes when an inventory adjustment is made (this field could serve fairly well since I do not use the inventory functions for which this date field is intended)2) There is a products model number field in both tables that should be unique although it is not the primary key in the mysql table as it has a an autonum id field as primary.
-
WSHansV
AskWoody LoungerMarch 4, 2004 at 2:24 pm #794217A phrase like “probably changes when an inventory adjustment is made” is dangerous – what if it isn’t changed consistently?
Start by making a backup copy of the Access database, and of the MySQL database (if possible, I have no experience with MySQL.)
You could create a query based on both tables. Join them on the product model number field. Add the Last Modified field from the MySQL table to the query grid. In the Criteria line, enter >[NameOfOtherTable].[StockTakeDate] or <[NameOfOtherTable].[StockTakeDate] depending on which table you want to update. Of course, you must substitute the correct names for table and fields. Add the fields you want to update to the query grid. Then change the query to an update query. In the Update To line, enter [NameOfTable].[NameOfField] with the appropriate table and field names. Double check that you selected the correct fields. You can switch to datasheet view temporarily to see the values that are going to be changed (you see the OLD values, NOT the new ones), then switch back to design view. If you're satisfied that the query is going to do what you want, run it…
-
WSjpgus
AskWoody LoungerMarch 4, 2004 at 4:34 pm #794290Thanks Hans
ill give it whirl and report backRE: your thought…
[indent]
A phrase like “probably changes when an inventory adjustment is made” is dangerous – what if it isn’t changed consistently?
[/indent]
What I meant was that I do not really understand how the field is used because 1) I did not write the application and 2)I do not use the inventory functionality so I could not discern a consistent pattern from the values that are in that field other than that the date values seem to reflect the date when a given product was added to the db.I still think this date field will work for me the way you propose. Thanks a lot
Truly,
Jason
-
WSjpgus
AskWoody LoungerMarch 4, 2004 at 4:34 pm #794291Thanks Hans
ill give it whirl and report backRE: your thought…
[indent]
A phrase like “probably changes when an inventory adjustment is made” is dangerous – what if it isn’t changed consistently?
[/indent]
What I meant was that I do not really understand how the field is used because 1) I did not write the application and 2)I do not use the inventory functionality so I could not discern a consistent pattern from the values that are in that field other than that the date values seem to reflect the date when a given product was added to the db.I still think this date field will work for me the way you propose. Thanks a lot
Truly,
Jason
-
WSHansV
AskWoody LoungerMarch 4, 2004 at 2:24 pm #794218A phrase like “probably changes when an inventory adjustment is made” is dangerous – what if it isn’t changed consistently?
Start by making a backup copy of the Access database, and of the MySQL database (if possible, I have no experience with MySQL.)
You could create a query based on both tables. Join them on the product model number field. Add the Last Modified field from the MySQL table to the query grid. In the Criteria line, enter >[NameOfOtherTable].[StockTakeDate] or <[NameOfOtherTable].[StockTakeDate] depending on which table you want to update. Of course, you must substitute the correct names for table and fields. Add the fields you want to update to the query grid. Then change the query to an update query. In the Update To line, enter [NameOfTable].[NameOfField] with the appropriate table and field names. Double check that you selected the correct fields. You can switch to datasheet view temporarily to see the values that are going to be changed (you see the OLD values, NOT the new ones), then switch back to design view. If you're satisfied that the query is going to do what you want, run it…
-
-
-
WSjpgus
AskWoody LoungerMarch 4, 2004 at 1:52 pm #794204Hans.
Answers.
1) the mysql table has a date added field and a last modified field
The Access table has a stock-take date which seems to default to the date a product is added and probably changes when an inventory adjustment is made (this field could serve fairly well since I do not use the inventory functions for which this date field is intended)2) There is a products model number field in both tables that should be unique although it is not the primary key in the mysql table as it has a an autonum id field as primary.
-
-
-
WSHansV
AskWoody LoungerMarch 3, 2004 at 6:47 pm #793685More questions…
1. Do the records contain a “last modified” date/time field? If so, that would help determining which records have to be synchronized.
2. Is there an easy way to match records, i.e. some kind of unique ID that occurs in both tables, or do you have to find probable matches by comparing a number of fields?
WSjpgus
AskWoody LoungerWSHansV
AskWoody LoungerViewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Office gets current release
by
Susan Bradley
1 hour, 11 minutes ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
6 hours, 33 minutes ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
3 hours, 17 minutes ago -
Stop the OneDrive defaults
by
CWBillow
7 hours, 22 minutes ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
17 hours, 18 minutes ago -
X Suspends Encrypted DMs
by
Alex5723
19 hours, 30 minutes ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
19 hours, 48 minutes ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
20 hours, 25 minutes ago -
OpenAI model sabotages shutdown code
by
Cybertooth
21 hours, 2 minutes ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
9 hours, 12 minutes ago -
Enabling Secureboot
by
ITguy
16 hours, 11 minutes ago -
Windows hosting exposes additional bugs
by
Susan Bradley
1 day, 4 hours ago -
No more rounded corners??
by
CWBillow
1 day ago -
Android 15 and IPV6
by
Win7and10
14 hours, 30 minutes ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
1 day, 17 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
1 day, 19 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
1 day, 14 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
2 days, 3 hours ago -
May preview updates
by
Susan Bradley
1 day, 14 hours ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
1 day, 6 hours ago -
Just got this pop-up page while browsing
by
Alex5723
1 day, 19 hours ago -
KB5058379 / KB 5061768 Failures
by
crown
1 day, 16 hours ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
18 hours, 45 minutes ago -
At last – installation of 24H2
by
Botswana12
2 days, 18 hours ago -
MS-DEFCON 4: As good as it gets
by
Susan Bradley
15 hours, 32 minutes ago -
RyTuneX optimize Windows 10/11 tool
by
Alex5723
3 days, 7 hours ago -
Can I just update from Win11 22H2 to 23H2?
by
Dave Easley
1 day, 5 hours ago -
Limited account permission error related to Windows Update
by
gtd12345
3 days, 20 hours ago -
Another test post
by
gtd12345
3 days, 20 hours ago -
Connect to someone else computer
by
wadeer
3 days, 15 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.