473,395 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Synchronizing IDs accross multiple tables

I have a similar problem. I have a form displaying some primary information, this form has six command buttons, each designed to open a form from a different table. I want to associate these records with the form displaying the primary information. Relationships are as follows; Primary Information ID is set to all other tables ID. On my first attempt, if I did not enter data to one of the other tables opened by the command button, an auto ID was not created - messing up the synch of the records.

My question is this: To keep everything synched, when the form is opened can I force the creation of a record to all the other tables this form openes to keep the ID's synched?

These records must eventualy be created, but the user may bail out before each form is opened.

??? Help ???

Related Thread: Synchronise
Sep 18 '07 #1
2 1162
JKing
1,206 Expert 1GB
Hi, you had posted your question under an older thread. This is discouraged as it can clutter up the original poster's feedback and will limit the feedback you yourself receive. I have taken the liberty of splitting your post into it's own thread and assigning an appropriate thread title for you.

MODERATOR
Sep 18 '07 #2
NeoPa
32,556 Expert Mod 16PB
You can do this but it would take a fair amount of code.
It may be possible to do it without the extra code if using sub-forms (I'll let someone who knows them better discuss that) but I would :
  1. Open the related form with a filter which shows which value you want (which defines the relationship to the master table).
  2. Have a control in the opened form (can be hidden if you like) which holds that value.
  3. Make sure the Control.DefaultValue is set to the value found in the filter when the form is opened.
This will ensure that only matching entries are shown AND that all new entries will be matching.

BTW. Nice work JKing. You were absolutely right to "take the liberty" of splitting this thread out. Good job.
Sep 18 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: SQLServer007 | last post by:
25 more days until the "get it free" promotion runs out for xSQL Object (you can get it from http://www.x-sql.com) Here are just some of the great features packed in the product: - Compare SQL...
0
by: SQLServer007 | last post by:
25 more days until the "get it free" promotion runs out for xSQL Object (you can get it from http://www.x-sql.com) Here are just some of the great features packed in the product: - Compare SQL...
8
by: L Major | last post by:
Hi Unfortunately, I am limited to using tables for part of my current project. I have a form that spans across a number of TR and TD in the shape of checkboxes. Doctype is XHTML 1.0...
4
by: Chris Ochs | last post by:
We have a number of tables in a CRM that is written in MS access that I need to be able to provide a web interface to. I can export the tables just fine using pgadmin II, but I cant' think of a...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.