473,569 Members | 2,691 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Linking database fields for automatic update of information

2 New Member
Morning everyone

I have made up a database to record generations of birds; along with others I have the following fields:

Ring number (primary key)
Sex
Year
Colour

Data entry via a form view.

For new entries I pick up from a combo box the parents, what I need to do now is create a relationship between 1, 3&4 and 2, 5&6 so that the data will automatically slot in the relevant fields.

1 Parent [censored]
2 Parent Hen
3 Grand Parent [censored] C/S
4 Grand Parent Hen C/S
5 Grand Parent [censored] H/S
6 Grand Parent Hen H/S

would I do it via a query.’ And would one cover relevant generations

Thanks for any help

Norma
Sep 20 '07 #1
3 1436
Scott Price
1,384 Recognized Expert Top Contributor
Morning everyone

I have made up a database to record generations of birds; along with others I have the following fields:

Ring number (primary key)
Sex
Year
Colour

Data entry via a form view.

For new entries I pick up from a combo box the parents, what I need to do now is create a relationship between 1, 3&4 and 2, 5&6 so that the data will automatically slot in the relevant fields.

1 Parent [censored]
2 Parent Hen
3 Grand Parent [censored] C/S
4 Grand Parent Hen C/S
5 Grand Parent [censored] H/S
6 Grand Parent Hen H/S

would I do it via a query.’ And would one cover relevant generations

Thanks for any help

Norma
The following link is to Allen Browne's website where he covers how to link a table to itself. The subject he is using is horse breeding/pedigrees, but should be adaptable to your situation as well. http://allenbrowne.com/ser-06.html

You might need to adjust the structure of your table, as his method does away with the need for Grand Parent fields.

The basic idea is to drag three copies of the same table into one query in design view. Rename two of them, then create the relationships by dragging the FatherID and MotherID fields to their respective locations. This can be repeated for as many layers of ancestors as desired.

Regards,
Scott
Sep 20 '07 #2
callumas
2 New Member
Hi Scott

Just had a look at what you have said and Allen Browne's example looks just what I need.

thanks for your help and I'm sure I'll be back.

Norma
Sep 20 '07 #3
Scott Price
1,384 Recognized Expert Top Contributor
Hi Scott

Just had a look at what you have said and Allen Browne's example looks just what I need.

thanks for your help and I'm sure I'll be back.

Norma
You're welcome, and welcome to the Scripts!

Regards,
Scott
Sep 20 '07 #4

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

Similar topics

1
2189
by: Craig | last post by:
Hi, I am storing information being sent to me weekly into a ms sql database. The one twist I am running into is that later down the line the information I recieve may require more columns, or columns might be renamed so having a static database call is out of the question. I was using mysql but for certain reasons switched to ms sql 2000....
11
4508
by: dskillingstad | last post by:
I've been struggling with this problem for some time and have tried multiple solutions with no luck. Let me start with, I'm a novice at Access and I'm not looking for someones help to design my database,just help in getting me pointed in the right direction. I have a database with 8 tables, which from what I have read, cannot be linked...
0
1624
by: Pat Sagaser via .NET 247 | last post by:
I'm using a repeater with a dynamic template. I don't know the fields to display (or how many) until runtime. I have everything working except for linking Button events to the repeaters ItemCommand (see below). I've found plenty of examples for doing it using <ItemTemplate> in the aspx file, but I'm stumped when it comes to doing it dynamically...
2
1602
by: Dennis | last post by:
I hoping you might be able to help me with a small problem. I have made an application that links a VB.NET program to a database. After many failed attempts and reading I can add, delete, navigate records and update the actual database. I have a simple database with two tables that form a car maintenance tracking program. One table holds the...
3
2927
by: josh.kuo | last post by:
Sorry about the subject, I can't think of a better one. I recently wrote some PHP classes that I think might be of interest to this group. Since I have been reaping the benefits of reading news groups for years, I figure it's time for me to contribute a little bit back, maybe some people out there will find this useful. * Introduction ...
2
2356
by: MirzaSila | last post by:
I have a form whitch record source is one of the tables I have in my database.I have various text fields on that form whitch control sources are table fields.When I'm inputing text into these text fields database is automaticly updated.Problem is that I want to update database only after pressing some button for example "Save button".Is there...
4
8739
by: =?Utf-8?B?QmFyYmFyYSBBbGRlcnRvbg==?= | last post by:
I setup a simple gridview as a utility just to do some updates, nothing fancy just wanted easy UI to make updates. When I select ‘Edit’, I get the fields I want to edit. I edit them and click ‘Update’, the page returns to its original state (prior to clicking Edit) and no updates occur in the DB. What am I missing? I included the...
6
2021
by: bmoore | last post by:
Greetings, This seems like it should be a simple problem, but I'm new to Access and my digging hasn't yielded a solution. I would like to create a table in a non-protected database that contains only certain (non-sensitive) fields selected from a table in a password-protected database. I need the fields in the new table to update...
2
3556
by: rustyc | last post by:
Well, here's my first post in this forum (other than saying 'HI' over in the hi forum ;-) As I said over there: ... for a little side project at home, I'm writing a ham radio web site in uby/Rails. I started it in Perl and gave up on Perl as I went from the 'display the database information on the web page' to the 're-display the information...
0
7698
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8122
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7970
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5513
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1213
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.