473,385 Members | 1,752 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,385 software developers and data experts.

Subform not linking to Main form

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 of an auto-number and an Alpha expression. The subform that links fine is a comments form (continuous form with just date field and memo box) and the subform that won't link is a larger, more detailed form where I would like to add more than one "Action Plan" to the item on the main form. The parent/child relationships on both are tracking ID to tracking ID. They are also linked by tracking ID in relationships. I didn't do anything different with the Action Plan form as opposed to the Comments form except the continuous form part, so I can't figure out why one works and the other doesn't. I've tried to make it a continuous form, too, and it still doesn't work.

My primary keys are auto-numbers in each table and I just added a tracking ID field to each table for linking purposes.

I have checked it over and over and can't see anything I'm missing, but can't figure out why the information in the Action Plan form will not show up in it's appropriate Tracking record??? Maybe I'm missing something???
Aug 6 '07 #1
2 6888
hyperpau
184 Expert 100+
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 of an auto-number and an Alpha expression. The subform that links fine is a comments form (continuous form with just date field and memo box) and the subform that won't link is a larger, more detailed form where I would like to add more than one "Action Plan" to the item on the main form. The parent/child relationships on both are tracking ID to tracking ID. They are also linked by tracking ID in relationships. I didn't do anything different with the Action Plan form as opposed to the Comments form except the continuous form part, so I can't figure out why one works and the other doesn't. I've tried to make it a continuous form, too, and it still doesn't work.

My primary keys are auto-numbers in each table and I just added a tracking ID field to each table for linking purposes.

I have checked it over and over and can't see anything I'm missing, but can't figure out why the information in the Action Plan form will not show up in it's appropriate Tracking record??? Maybe I'm missing something???

try to remove that subform and readd it using the access wizard so that we can know what is causing the error. access wizards usually tells you if something is wrong with your setup.

sorry, that is all i have to say right now. :)
Aug 20 '07 #2
Scott Price
1,384 Expert 1GB
So you have your subform based on a query, or a table?

Query would be far more flexible, allows to enter the criteria you want in the query design view: i.e. =Forms![YourMainForm].[TrackingIDControlName]

This will then tell the query to display the records you want to see.

Then all you need is a Forms![YourMainForm]![YourSubForm].Form.Requery command in the afterupdate event of your TrackingID control to requery the subform and thereby show the appropriate records.

Regards,
Scott
Aug 21 '07 #3

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

Similar topics

4
by: tlaker10 | last post by:
Access 2000- my form has fields for “name”, “arrival”, “departure” and “site nbr”. Can I make a subform under “name” that keeps a history of all previous entries to arrival/departure/site nbr so...
4
by: Dave Boyd | last post by:
Hi, I have two very similar forms each with a subform. The main form gets a few fields from the user and passes this back to a query that the subform is bound to. The requery is done when the...
1
by: NBruch | last post by:
Ok let me explain what im trying to do: i need a combo box which needs to be linked to a listbox (or combo box doesnt matter which really) then the listbox should bring up the record in a...
1
by: BartonConstruction | last post by:
Greetings all, I have a main form (frmClients) with two subforms (subVisits) (subAccount). I got the subforms to reflect what the main form is showing by linking master and child fields (I...
4
by: bobg.rjservices | last post by:
running access 2k; adp w/ linked tables to SQL server; I am absolutely stymied, and ticked off beyond belief - I can not believe how much time I've wasted trying to do something that should be...
9
by: Ecohouse | last post by:
I have a main form with two subforms. The first subform has the child link to the main form identity key. subform1 - Master Field: SK Child Field: TrainingMasterSK The second subform has a...
7
by: ApexData | last post by:
I am using the following code in my TabControl to manage subform loads. The code assigns the subForms SourceObject. - Do I also need code to DeAssign the SourceObject when leaving the Tab, I'm...
0
by: Mary | last post by:
I have a main form with one subform that is used to record test scores. The main form has the following fields: WratStudentID ( a combo box with 2 fields - student id and student name - . Stores...
8
by: Simon | last post by:
Dear reader, The syntax for the VBA code to change the RowSource of a Form is: Forms!FormName..RowSource = "TableOrQueryName"
5
by: samdev | last post by:
I have created two combo boxes in a subform.... For example 1. Combo Box State 2. Combo Box City 3. When a state from the Combo Box State is selected, the City combo box updates to reflect...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.