472,344 Members | 2,599 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,344 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 6656
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...
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...
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...
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...
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...
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...
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...
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...
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...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...

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.