I posted a similar problem weeks ago, and I received some great advice but none of which I was able to apply successfully. I suspect that part of the problem was I had already begun the work myself, and probably corrupted the scenario. I worked thru that situation with multiple forms.
I am about to start on a new project. Before I even begin, I welcome ANY advice.
I manage software design documents following an implementation of the RUP Methodology.
My database works wonderfully when all requirements are driven by a design document called a Use Case
A Use Case has 1 to many Flows. Each flow has multiple steps. Here's where I get my problem.
I want to view a single Use Case.
For each Use Case, I want to add 1 to many flows.
For each Flow, I want to add 1 to many steps.
I'd like to navigate through my application from use case to use case and then add, update Flows and Flow - Steps as I go.
So, the above lends itself to a form, with a subform, and another subform.
Any best practices I should implement from the get-go to avoid problems?
Thanks in advance for any help!
4 1448
I posted a similar problem weeks ago, and I received some great advice but none of which I was able to apply successfully. I suspect that part of the problem was I had already begun the work myself, and probably corrupted the scenario. I worked thru that situation with multiple forms.
I am about to start on a new project. Before I even begin, I welcome ANY advice.
I manage software design documents following an implementation of the RUP Methodology.
My database works wonderfully when all requirements are driven by a design document called a Use Case
A Use Case has 1 to many Flows. Each flow has multiple steps. Here's where I get my problem.
I want to view a single Use Case.
For each Use Case, I want to add 1 to many flows.
For each Flow, I want to add 1 to many steps.
I'd like to navigate through my application from use case to use case and then add, update Flows and Flow - Steps as I go.
So, the above lends itself to a form, with a subform, and another subform.
Any best practices I should implement from the get-go to avoid problems?
Thanks in advance for any help!
Well, ordinarily, you will use three tables, given the above structure:
tblUseCase
UseCaseID AutoNumber PK
UseCase
FlowID Number FK
tblFlow
FlowID AutoNumber PK
Flow
FlowStepID Number FK
tblFlowStep
FlowStepID AutoNumber PK
FlowStep
The query to select the data you want from the above example looks something like this: -
SELECT tblUseCase.UseCaseID, tblUseCase.UseCase, tblUseCase.FlowID, tblFlow.Flow, tblFlowStep.FlowStep FROM tblUseCase, tblFlow, tblFlowStep INNER JOIN tblUseCase ON tblUseCase.FlowID = tblFlow.FlowID (INNER JOIN tblFlow ON tblFlow.FlowStepID = tblFlowStep.FlowStepID) WHERE tblUseCase.UseCaseID = Forms!frmUseCase!cboUseCaseSelect
You likely won't need to nest that many subforms, since you can use listboxes to do the same job a little more neatly. I.e. a combo box to choose the UseCase, a listbox to display the Flow(s), and a second listbox to display the associated Flowstep(s).
This is strictly off the top of my head, now! So don't go copying the code and pasting it without checking it carefully :-)
Hope this helps!
Regards,
Scott
ADezii 8,834
Recognized Expert Expert
I posted a similar problem weeks ago, and I received some great advice but none of which I was able to apply successfully. I suspect that part of the problem was I had already begun the work myself, and probably corrupted the scenario. I worked thru that situation with multiple forms.
I am about to start on a new project. Before I even begin, I welcome ANY advice.
I manage software design documents following an implementation of the RUP Methodology.
My database works wonderfully when all requirements are driven by a design document called a Use Case
A Use Case has 1 to many Flows. Each flow has multiple steps. Here's where I get my problem.
I want to view a single Use Case.
For each Use Case, I want to add 1 to many flows.
For each Flow, I want to add 1 to many steps.
I'd like to navigate through my application from use case to use case and then add, update Flows and Flow - Steps as I go.
So, the above lends itself to a form, with a subform, and another subform.
Any best practices I should implement from the get-go to avoid problems?
Thanks in advance for any help!
I know it's not the recommended practice, and I'll probably get some negative comments on this approach, but to me the most intuitive, simplest, logical, and recognizable solution to entering multi-level, hierarchical data of this nature is to use the Datasheet ==> Sub-Datasheet ==> and Sub-Sub-Datasheet capability in Access. It is frowned upon because you are entering data at the lowest level (Table) and it is not buffered. If you are the only one who would be entering and/or modifying data, you may wish to consider this angle. On the other hand if you have multiple Users who would be doing the same, I would forget that I ever mentioned it. I am not eliminating the need for Forms as far as displaying the data, I am only mentioning this approach primarily for the use and intuitiveness with which you can enter data. If I'm populating Tables at 3 or more levels deep, this is exactly how I approach this situation. Now, I'll just sit back and watch the bullets fly!
Thank you for the replies! I do need to allow for multiple users. To that end, I've had some pretty good results from using a combination of a subform and list boxes. I'm really pleased with how this has come together.
thanks for the help Scott!
Thank you for the replies! I do need to allow for multiple users. To that end, I've had some pretty good results from using a combination of a subform and list boxes. I'm really pleased with how this has come together.
thanks for the help Scott!
You're quite welcome!
Good luck with the rest of your app.
Regards,
Scott
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Rey |
last post by:
Howdy all.
Appreciate your help with several problems I'm having:
I'm trying to determine if the Visit subform (subformVisits) has a new
record or been changed, i.e. dirty. The form that contains the subform is
named Clients.
I have this code in the Add Client btn:
If Forms!Clients.subformVisits!VisitDirty = True Then
MsgBox "Visit subform is dirty!"
|
by: Lyn |
last post by:
Hi,
I am working on a genealogy form. The only table (so far) lists everybody
in the family, one record per person. Each record has an autonum ID.
The parent form (frmMainForm) displays the data in each record, which
includes the ID of the father and the mother (who also have records in the
table). One record per form.
I have a Tab Control in the form, and in one of the tabs I have a subform
(sfmSiblings) in which I wish to list...
|
by: MLH |
last post by:
I have created two forms: frmBrowseNegsMainform and
frmBrowseNegsSubform. I put a subform control on the
first of these. The SourceObject property for the subform
control is, of course, frmBrowseNegsSubform.
I would like to perform an ascending or descending sort
on any of the 7 columns shown in datasheet view in the
subform control. I've been unsuccessful.
Is there something tricky about sorting in subform controls?
|
by: John Michael |
last post by:
I have a form that has a subform that has a subform.
The subform loads a record based on a combo lookup box in the main form.
I'm trying to set a value in the subform based on a value in a subform of
the subform.
the main Form is called
Subform is called
Subform in the subform is called
|
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: 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: DMUM via AccessMonster.com |
last post by:
Hello
I am trying to pass the name of my subform to a function/sub but I can't
seem to get it to work. I am using an autokey function (ctrl E) to unlock
text boxes on a subform. I have a few forms in the database that will use
this function, so I need to be able to tell the code which form to unlock.
What I have is as follows:
Public Function akeyEdit()
|
by: Macbane |
last post by:
Hi,
I have a 'main' form called frmIssues which has a subform control
(named linkIssuesDrug) containing the subform sfrmLink_Issues_Drugs.
A control button on the main form opens a pop-up form which allows me
to edit the record in the subform. What I want to happen is for
subform with the new edits to be updated on the main form when I close
the popup. I'm sure this is a very small bit of code in the the 'On
close' event for the popup...
|
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: mrowe |
last post by:
I am using Access 2003. (I am also using ADO in the vast majority of my code. I recently read a post that indicated that ADO is not all that is was initially cracked up to be. In the back of my mind I am wonder if this is causing my problem, but I don’t want to go through the work to convert to DAO unless I know it is truly in my best interest.)
I am having problems getting a requery to show up consistently on a couple of forms. I have...
|
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: 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...
|
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...
|
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: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
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.
| | |