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??
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
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, 2 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
-
Moving fwd, Win 11 Pro,, which is best? Lenovo refurb
by
Deo
1 hour, 15 minutes ago -
DBOS Advanced Network Analysis
by
Kathy Stevens
7 hours, 2 minutes ago -
Microsoft Edge Launching Automatically?
by
healeyinpa
52 minutes ago -
Google Chrome to block admin-level browser launches for better security
by
Alex5723
9 hours, 42 minutes ago -
iPhone SE2 Stolen Device Protection
by
Rick Corbett
1 hour, 58 minutes ago -
Some advice for managing my wireless internet gateway
by
LHiggins
6 minutes ago -
NO POWER IN KEYBOARD OR MOUSE
by
HE48AEEXX77WEN4Edbtm
3 hours, 55 minutes ago -
A CVE-MITRE-CISA-CNA Extravaganza
by
Nibbled To Death By Ducks
19 hours, 12 minutes ago -
Sometimes I wonder about these bots
by
Susan Bradley
15 hours, 29 minutes ago -
Does windows update component store “self heal”?
by
Mike Cross
5 hours, 32 minutes ago -
Windows 11 Insider Preview build 27858 released to Canary
by
joep517
1 day, 9 hours ago -
Pwn2Own Berlin 2025: Day One Results
by
Alex5723
1 day, 8 hours ago -
Windows 10 might repeatedly display the BitLocker recovery screen at startup
by
Susan Bradley
5 hours, 48 minutes ago -
Windows 11 Insider Preview Build 22631.5409 (23H2) released to Release Preview
by
joep517
1 day, 11 hours ago -
Windows 10 Build 19045.5912 (22H2) to Release Preview Channel
by
joep517
1 day, 11 hours ago -
Kevin Beaumont on Microsoft Recall
by
Susan Bradley
1 day ago -
The Surface Laptop Studio 2 is no longer being manufactured
by
Alex5723
1 day, 20 hours ago -
0Patch, where to begin
by
cassel23
1 day, 14 hours ago -
CFPB Quietly Kills Rule to Shield Americans From Data Brokers
by
Alex5723
2 days, 9 hours ago -
89 million Steam account details just got leaked,
by
Alex5723
1 day, 21 hours ago -
KB5058405: Linux – Windows dual boot SBAT bug, resolved with May 2025 update
by
Alex5723
2 days, 18 hours ago -
A Validation (were one needed) of Prudent Patching
by
Nibbled To Death By Ducks
2 days, 9 hours ago -
Master Patch Listing for May 13, 2025
by
Susan Bradley
1 day, 20 hours ago -
Installer program can’t read my registry
by
Peobody
13 hours, 4 minutes ago -
How to keep Outlook (new) in off position for Windows 11
by
EspressoWillie
2 days, 6 hours ago -
Intel : CVE-2024-45332, CVE-2024-43420, CVE-2025-20623
by
Alex5723
2 days, 14 hours ago -
False error message from eMClient
by
WSSebastian42
3 days, 5 hours ago -
Awoke to a rebooted Mac (crashed?)
by
rebop2020
3 days, 14 hours ago -
Office 2021 Perpetual for Mac
by
rebop2020
3 days, 15 hours ago -
AutoSave is for Microsoft, not for you
by
Will Fastie
13 hours, 10 minutes 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.