473,756 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Linking 2 Subforms with Another--surely there is a way

Think school - students - discipline interventions - misbehaviors -
staff for this one....On a mainform frmStudentInter ventions, I have
linked a subform (sfrmMisbehavio rs) with another subform
(sfrmInterventi ons) with the Child and Master fields
"InterventionID ." This is tested and works - as users click through
the continuous list of interventions, the continuous list of
misbehaviors changes per intervention. Now, I need to link another
subform (sfrmStaff) with the subform (sfrmInterventi ons), such as also
by linking the Child and Master fields "InterventionID ." So, the list
of involved staff (could be 1) would be synchronized with the
interventions. When I load test data into the underlying join table,
I can see the appropriate staff for an intervention. But, the
synchronization/refreshing does will work like the subform of
misbehaviors. Can there be the same Master/Child links for 2 separate
subforms on a main form? Have I reached Access's limit? Is there a
work-around for this?
Thanks a lot!
Jul 11 '08 #1
3 2587
Try on your staff subform
LinkChildField InternentionID
LinkMasterField frmsMisbehaviou rs.form!Interve ntionID

All depends on having the correct table structure and relationships. There
is normally not a limit on the subforms, and as far as I know they can be
cascaded down. If you have too many and too many comboboxes / listboxes you
can get a very misleading error of "Too many databases open"

Very confusing - Schools, Master, Child

HTH

Phil
<6a************ ***@gmail.comwr ote in message
news:18******** *************** ***********@k30 g2000hse.google groups.com...
Think school - students - discipline interventions - misbehaviors -
staff for this one....On a mainform frmStudentInter ventions, I have
linked a subform (sfrmMisbehavio rs) with another subform
(sfrmInterventi ons) with the Child and Master fields
"InterventionID ." This is tested and works - as users click through
the continuous list of interventions, the continuous list of
misbehaviors changes per intervention. Now, I need to link another
subform (sfrmStaff) with the subform (sfrmInterventi ons), such as also
by linking the Child and Master fields "InterventionID ." So, the list
of involved staff (could be 1) would be synchronized with the
interventions. When I load test data into the underlying join table,
I can see the appropriate staff for an intervention. But, the
synchronization/refreshing does will work like the subform of
misbehaviors. Can there be the same Master/Child links for 2 separate
subforms on a main form? Have I reached Access's limit? Is there a
work-around for this?
Thanks a lot!

Jul 11 '08 #2
Thanks for replying Phil,

Good suggestion, but that still did not appear to work. I'm going to
try it the other way--linking sfrmMisbehavior s to sfrmStaff, through
the common field of InterventionID; we'll see and I'll post back when
I can.
Neither of these two subforms, sfrmMisbehavior s and sfrmStaff, should
be dependent on each other; they should simply and separately be
linked to sfrmInterventio ns. The structure is correct - both are
based on jointables that allow for many-to-many relations with
tblIntervention s.

Nick
Jul 11 '08 #3
OK, problem solved - somewhat. I didn't have a "requery" in the right
spot. So, I put

Me.Parent![sfrmStaff].Requery

in the On Current event of sfrmInterventio ns.

So now, when a user goes from mainform record to record, the 3
subforms - sfrmInterventio ns, sfrmStaff, and sfrmMisbehavior s - are
all synchronized.

HOWEVER, when a user navigates through records too fast, the
"Calculating... " message appears in the Status bar for a number of
seconds.

This is how the subforms are linked:

Mainform name = frmIntervention s, pk = ClientID

1st subform name = sfrmInterventio ns, pk = InterventionID
Link Child Fields = StudentID
Link Master Fields = StudentID

2nd subform name = sfrmStaff
Link Child Fields = InterventionID
Link Master Fields = [sfrmInterventio ns].Form![InterventionID]

3rd subform name = sfrmMisbehavior s
Link Child Fields = InterventionID (same link as the
2nd subform)
Link Master Fields = [sfrmInterventio ns].Form![InterventionID]

When a user goes too fast, or if the 1st subform happens to have a lot
of data (in continuous view) when clicked into, the main form takes
awhile to refresh.

On a side note.....when I put yet another requery in the On Current
event of sfrmInterventio ns:

Me.Parent![sfrmStaff].Requery
Me.Parent![sfrmMisbehavior s].Requery

the "Calculating... " message appears - but never goes away - appears
to continuously loop and ultimately will lock up Access. I even see
the little subforms, sfrmStaff and sfrmMisbehavior s, alternate in
flickering for a few seconds each. I've corrected the form fields'
conditional formatting, as described by Allen Browne at
http://allenbrowne.com/bug-05.html.

So, for closers, can Access handle these three subforms on a main
form??? Is there a way to make this more efficient?

Thanks, and have a good day.
Jul 12 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1799
by: Arnold | last post by:
Hi there, I have a form to organize bottles in mind, but am unsure if it will work. Here's some background info: Mainform = frmProduct, which contains fields for pricing, status, etc. of complete bottles, as well as an image control for a thumbnail of a complete product (bottle + cap). The mainform has 2 subforms that must be visible and side-by-side:
3
3847
by: Diana Gard | last post by:
Perhaps this is a design flaw, please let me know. I'm using Access 2000. I have a form with a tab control and 5 subforms within those tabs. The forms match with the tables: Client main, Intake, Financial, Fees, Payments, Bills, Bill Line Items. The design works thusly - Client Main relates to Intake. Intake relates to financial. Financial relates Fees, Payments and Bills. Bills relates to Bill Line Items. On the form, I use the...
11
4532
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 on a single form, and be updatable. I have created a query which includes all 8 tables, and then...
8
3092
by: Zlatko Matić | last post by:
Hello. How can I synchronize subforms content with current record in master form, if both form and subform are based on DAO code ? I assigned DAO recordset to forms by using QueryDef, on Load event. Thanks...
5
3060
by: kkrizl | last post by:
I have a form that shows burglar alarm permits. I have a subform that shows the alarms that have occurred at the location of the permit (linked by permit number). There is a different fine schedule for false alarms for burglar alarms vs. panic alarms. I thought I could just create an alarm type field and add an additional subform so that burglar alarms appear in the first subform, and panic alarms appear in the second subform. I tried...
2
1398
by: Deenos2000 | last post by:
The database has 3 subforms. Within one subform donors are put into one of two categories. In another subform the amount of their donations is entered. What is the most efficient way to set it up so that if I call up a donor category I could see how much he donated in that category. Hope this is clear. If not ask for more info. Thanks
1
2811
by: santociabattari | last post by:
Hi Folks, I have 3 forms I want to link, so that when I advance 1 record in one form it will update the other two with the same record in the first form. I have tried using the form wizard (I am not an Access pro), but when I add the fields of 3 tables the wizard balks. I have been told to use the link master, but it is greyed out when I try linking. I can use Access 2000 or 2003
22
3223
by: banderson | last post by:
Hello I'm new to developing databases in Access and using Access2003. I have a dataset with a few many to many relationships that I have created linking tables for to make multiple 1:M relationships. My problem is trying to figure out a set of forms and subforms for this data in which the users can enter new data in a straightforward way. In my dataset there are: Buildings, Contacts, addresses for buildings and contacts, and different types of...
3
1166
by: kpryan | last post by:
Hi all, In our work DB I want to be able to link 2 continous forms together using an ID. So far I have created both the forms and made them continous forms. I then opened a blank form and inserted both the forms as individual subforms. However I need to link both these forms together. It has be suggested that I link them manually, but I don't know how to do it. I have limited access programming knowledge. Any help would be appreciated. ...
0
1415
by: fredloh | last post by:
my application have customers and invoices. each customer can have 1 or more invoices. on my form i have a subform for customers and one subform for invoices. both subforms are in datasheet view. if i click on customer A in the customer subform i want the invoice subform to show only invoices for customer A and at the same time allow me to add invoices for customer A. what are the steps to accomplish this? also i want to be able to...
0
9152
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,...
0
9716
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9716
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9571
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8569
agi2029
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...
0
6410
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();...
0
5180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3676
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3185
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.