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

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

Think school - students - discipline interventions - misbehaviors -
staff for this one....On a mainform frmStudentInterventions, I have
linked a subform (sfrmMisbehaviors) with another subform
(sfrmInterventions) 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 (sfrmInterventions), 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 2570
Try on your staff subform
LinkChildField InternentionID
LinkMasterField frmsMisbehaviours.form!InterventionID

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.comwrote in message
news:18**********************************@k30g2000 hse.googlegroups.com...
Think school - students - discipline interventions - misbehaviors -
staff for this one....On a mainform frmStudentInterventions, I have
linked a subform (sfrmMisbehaviors) with another subform
(sfrmInterventions) 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 (sfrmInterventions), 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 sfrmMisbehaviors to sfrmStaff, through
the common field of InterventionID; we'll see and I'll post back when
I can.
Neither of these two subforms, sfrmMisbehaviors and sfrmStaff, should
be dependent on each other; they should simply and separately be
linked to sfrmInterventions. The structure is correct - both are
based on jointables that allow for many-to-many relations with
tblInterventions.

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 sfrmInterventions.

So now, when a user goes from mainform record to record, the 3
subforms - sfrmInterventions, sfrmStaff, and sfrmMisbehaviors - 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 = frmInterventions, pk = ClientID

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

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

3rd subform name = sfrmMisbehaviors
Link Child Fields = InterventionID (same link as the
2nd subform)
Link Master Fields = [sfrmInterventions].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 sfrmInterventions:

Me.Parent![sfrmStaff].Requery
Me.Parent![sfrmMisbehaviors].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 sfrmMisbehaviors, 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
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...
3
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,...
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...
8
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...
5
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...
2
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...
1
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...
22
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....
3
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...
0
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....
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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.