473,408 Members | 2,832 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,408 software developers and data experts.

Linking form & subform information

Ok, I have a form and a subform. The form shows a document with it's pertinent information. The subform has some of the same fields as the form and shows where the document was sent.
The main form fields are:
Number, Type, Title, Version, EffectiveDate, Status, Owner, Reference, ChangeRequestNo, Comments
The subform fields are:
DDL_ID, Type, Number, Version, DocCtrlNo, Location, Returned, ChangeRequestNo

I know it is redundant to have some of the same fields but long story short, it's the easy way round. So, through the wizard that pops up when you add the subform to the main form I was able to specifiy that the Type, Number and Version should be the same in both the form and subform. How do I get it to also update the ChangeRequestNo? So, if the ChangeRequestNo is updated in the main form it will show up in the subform. I'm driving myself sideways trying to work out what is probably a very simple thing.

Many thanks,

PotatoChip.
May 27 '08 #1
7 2779
NeoPa
32,556 Expert Mod 16PB
Why is it, I wonder, that some of the most complicated issues are from people looking for the easy way out? A clue: Never take short-cuts without a map!
When you know the answer to that you're unlikely to get yourself into such situations.

On to the "simple" question then.
The picture you paint is reasonably clear, but what wasn't was why you chose to omit the [ChangeRequestNo] field from your Master/Child links?

It may be pertinent later, but is the subform a single record display, or does it list all matching records?
May 29 '08 #2
I didn't choose to omit [ChangeRequestNo']; the wizard maxes out at linking three. I link the [DocumentType], [DocumentNumber] and [Version]. The subform lists all matching records as the subform shows where the documents were sent to so there can be multiple records.
May 29 '08 #3
NeoPa
32,556 Expert Mod 16PB
Ah, that's exactly what I was after :) Now we can progress.

I suspect the wizard is where the restriction of only three connecting fields is found, though you should check as I've never myself used more than three.

Once you have the form created (after the wizard) edit the form in Design View, and click on the subform area. Now, sometimes this will select the Subform/Subreport control, but it's easy to click on the wrong area so if your properties box indicates any other type of control is selected then simply try again until a Subform/Subreport control IS selected.

Properties showing now should include both Link Child Fields & Link Master Fields. These should both be updated to add the extra linked field in. Use a ";" to separate the individual fields.
When you specify more than one field or control name for these property settings, you must enter the same number of fields or controls for each property setting and separate the names with a semicolon (;).
PS. Press F1 after selecting either of the properties to get a fuller explanation of how these two properties work together.
May 30 '08 #4
It worked! I wish I was as smart as you at Access. I didn't even know that property existed. I've taken 3 courses in Access and the more I work with it the more I realise the courses didn't even scratch the surface in terms of what can be done and how to do it in Access.

Thanks heaps!!

PotatoChip.
May 30 '08 #5
NeoPa
32,556 Expert Mod 16PB
You're very welcome - and thanks for the compliments :)
Jun 2 '08 #6
So once my boss saw how I had managed to link the ChangeRequestNo (and that it worked perfectly), she asked if I could add another field for MemoNos and link it in the same way. So, I added the fields to the appropriate tables, created the relationships, added them on my form & subform and linked them as I have learned how to do. However when I update either of the fields(MemoNo or ChangeRequestNo), they update perfectly until I go to a new record or exit the form. Then if I go back to the record I've already fully updated, the subform doesn't show the data. It's still in the table; just not the subform. It should be noted that only one record will have either a ChangeRequestNo or a MemoNo. No record will ever have both at the same time. Also, the form will work perfectly when you simply link one field. For some reason, it only gets upset when you link the two.
What am I doing wrong????? Please help!
Jun 2 '08 #7
NeoPa
32,556 Expert Mod 16PB
I'm afraid your description isn't clear enough for me to know the answer to that one :(

I would suggest a .Requery, but I don't even know if you're using any code in your project. What are the circumstances where a record is added but not reflected in the subform? If you go out and back in again, does the new record appear then?
Jun 2 '08 #8

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

Similar topics

4
by: Mason | last post by:
This is probably an incredibly newbie-ish question. I just haven't had the cause to use many subforms before, so I'm pretty sure I just don't understand it correctly (even after reading up on it)....
11
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...
2
by: Mike Boozer | last post by:
I have two subforms on my main form. I want the records on subform B to correspond with the records on subform A which they do. However, I want the records on subform A to let me know if there is a...
1
by: MJ | last post by:
I have a database where, when I put 3 forms on one form they link fine and auto fill in information as they should; however, when I try to use the Tab Control form I am having trouble having to...
9
by: Ecohouse | last post by:
I have a main form with two subforms. The first subform relates to the main form using an identity key (this works). The second subform relates to both the main and first subform. But I want to...
1
by: ppwlee | last post by:
Hi, I have created a main form with 2 subforms, Both subforms are in datasheet view. I want to be able to pick a record from subform1 and the corresponding linked record (created by a...
11
by: mrowe | last post by:
I am using Access 2003. (I am also using ADO in the vast majority of my code. I recently read a post that indicated that ADO is not all that is was initially cracked up to be. In the back of my...
3
by: Robert McEuen | last post by:
Using A2K3, Windows XP I'm handling a many-to-many relationship with a linking table structure as follows (irrelevant fields omitted): tblIssue PK_IssueID (autonumber, primary key) IssueName...
2
by: rlamber | last post by:
Hello, I have 2 subforms in a Main form, one links fine, the other doesn't. I am trying to link them both to a "tracking ID" on the main form. The Tracking ID is a text field that is a combination...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...
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
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...

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.