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???
2 6965 hyperpau 184
Recognized Expert New Member
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. :)
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].[TrackingIDContr olName]
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
Sign in to post your reply or Sign up for a free account.
Similar topics |
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 that when the main
form is changed, the new information is ADDED to the subform? Thanks
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
|
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 user enters the
last qualifying field on the main form.
In one case this works fine, the subform shows the data the user wants
to update -- which means showing all the data put in previously (ie
showing this via the requery and the continuous...
|
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 subform.
so you pick a name (in the combo box in the main form) then it should
bring up all the dates for which the person has a record for (in the
list box or combo box) and then once you pick a date it should bring up
the specific record you want...
|
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 think--newbie here). Now
I need the second subform (subAccount) to update when I add a visit in
the subVisits subform. I assume that the AfterUpdate would do it, but
I cant figure out what the code is to update another subform would be.
Not...
|
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
comically easy!!!!!
I have 2 tables: T_people, T_calls in a 1 to many relation (many
calls to each person).
I have a form with tabs in it. the form is NOT attached to a record
| |
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 master-child link to the first subform.
subform2 - Master Field: subTrainingModule.Form!TrainingModuleTopicSK
Child Field: TrainingModuleTopicSK
|
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 thinking the Table will stay open otherwise ???
- Do I also need to use code to Assign the Child&Master Links, or can
I just type the names into the subForms Control Property and just
depend on the SourceObject to link to Table???
|
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 the id)
WratGradeLevel
WratDateAdmin (mm/dd/yyyy)
WratForm
|
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"
|
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 the State chosen by only showing cities in that
selected state.
4. When I open just the subform it works just fine but when I open the
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |