Sign Up |  Live StatsLive Stats    Articles 35,345| Comments 159,788| Members 17,820, Newest waheguruhelpme| Online 213
Home Contact
 (Forgotten?): 
    A portrait by Bhagat Singh of Sikhiart.com

   
                                                                     Your Banner Here!    

Subform with one to many relationship

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 400 USD, Received: 35 USD (9%)
Please Donate...
Related Topics...
Thread Thread Starter Forum Replies Last Post
One to Many relationship David Billigmeier Information Technology 3 28-Jul-2006 08:39 AM
one to one relationship Vic Information Technology 6 28-Jul-2006 08:36 AM
relationship hfarouki Information Technology 12 28-Jul-2006 08:22 AM
Lookup Querey within subform of a subform Bob Richardson Information Technology 6 13-Nov-2005 17:33 PM
Many-to-many relationship Ronnie Information Technology 1 11-Nov-2005 20:09 PM


Tags
subform, many, relationship
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:17 AM
dBNovice's Avatar dBNovice
Guest
 
Posts: n/a
   
   
Subform with one to many relationship

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
Hello all, I posted this question previously but did not get suffient
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/10989-subform-with-one-to-many-relationship.html
help. (perhaps my question was not worded properly; hopefully this is
better) If possible, I really need help on this one............

I have 3 tables and corresponding forms: tasks, subtasks and elements.
subtasks is a subform of tasks and elements is a subform of subtasks.
I have all 3 forms on a tab control with 3 pages. There is a one to
many relationship with task <-> subtasks; subtasks <-> elements and
task <-> elements. I am able to insert a task and 1 associated subtask
and 1 element. The problem exists when I try to put multiple subtasks
and elements associated with one task. Is there a way to navigate to a
new record and automatically set the value of either the taskID on the
Subtasks subform or subtaskID on the Elements subform to link the new
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10989
subform/element to the initial Task. (i.e. I want to input a task w/
TaskID: 111 and a subtask with TaskID: 111 and SubtaskID: 01 and
another subtask with TaskID: 111 and SubtaskID: 02; then an element
with TaskID: 111 and SubtaskID: 01 and ElementID: 1 and another element
with TaskID: 111 and SubtaskID: 01 and ElementID: 2.

On the Subtasks subform: Link Child Fields...TaskID and the Link Master
Fields...Tasks.TaskID

On the Elements subform: Link Child Fields...SubtaskID and the Link
Master Fields...Subtasks.SubtaskID

Note: not all tasks have multiple subtasks or elements; a task could
have 0 subtask but must have an element (element contains due date).






 
Do share your immediate thoughts or reactions on this issue? We value your views! Login Now! or Sign Up Today! to share your views with us.. Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:17 AM
aaron.kempf@gmail.com's Avatar aaron.kempf@gmail.com
Guest
 
Posts: n/a
   
   
Re: Subform with one to many relationship

do you keep subtasks and elements in the same table?

if not then you should have 2 subforms.

almost all subforms are based on a one to many relationship.. shoudl be
pretty cut and dry.

Are you hoping to set up your subform in datasheet view?

go into the subform and set the default view to datasheet then
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10989
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10989

-Aaron



dBNovice wrote:
> Hello all, I posted this question previously but did not get suffient
> help. (perhaps my question was not worded properly; hopefully this is
> better) If possible, I really need help on this one............
>
> I have 3 tables and corresponding forms: tasks, subtasks and elements.
> subtasks is a subform of tasks and elements is a subform of subtasks.
> I have all 3 forms on a tab control with 3 pages. There is a one to
> many relationship with task <-> subtasks; subtasks <-> elements and
> task <-> elements. I am able to insert a task and 1 associated subtask
> and 1 element. The problem exists when I try to put multiple subtasks
> and elements associated with one task. Is there a way to navigate to a
> new record and automatically set the value of either the taskID on the
> Subtasks subform or subtaskID on the Elements subform to link the new
> subform/element to the initial Task. (i.e. I want to input a task w/
> TaskID: 111 and a subtask with TaskID: 111 and SubtaskID: 01 and
> another subtask with TaskID: 111 and SubtaskID: 02; then an element
> with TaskID: 111 and SubtaskID: 01 and ElementID: 1 and another element
> with TaskID: 111 and SubtaskID: 01 and ElementID: 2.
>
> On the Subtasks subform: Link Child Fields...TaskID and the Link Master
> Fields...Tasks.TaskID
>
> On the Elements subform: Link Child Fields...SubtaskID and the Link
> Master Fields...Subtasks.SubtaskID
>
> Note: not all tasks have multiple subtasks or elements; a task could
> have 0 subtask but must have an element (element contains due date).


Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:17 AM
Amy Blankenship's Avatar Amy Blankenship
Guest
 
Posts: n/a
   
   
Re: Subform with one to many relationship

  Donate Today!  

"dBNovice" wrote in message
news:1149700665.850779.185990@g10g2000cwb.googlegr oups.com...
> Hello all, I posted this question previously but did not get suffient
> help. (perhaps my question was not worded properly; hopefully this is
> better) If possible, I really need help on this one............
>
> I have 3 tables and corresponding forms: tasks, subtasks and elements.
> subtasks is a subform of tasks and elements is a subform of subtasks.
> I have all 3 forms on a tab control with 3 pages. There is a one to
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10989
> many relationship with task <-> subtasks; subtasks <-> elements and
> task <-> elements. I am able to insert a task and 1 associated subtask
> and 1 element. The problem exists when I try to put multiple subtasks
> and elements associated with one task. Is there a way to navigate to a
> new record and automatically set the value of either the taskID on the
> Subtasks subform or subtaskID on the Elements subform to link the new
> subform/element to the initial Task. (i.e. I want to input a task w/
> TaskID: 111 and a subtask with TaskID: 111 and SubtaskID: 01 and
> another subtask with TaskID: 111 and SubtaskID: 02; then an element
> with TaskID: 111 and SubtaskID: 01 and ElementID: 1 and another element
> with TaskID: 111 and SubtaskID: 01 and ElementID: 2.
>
> On the Subtasks subform: Link Child Fields...TaskID and the Link Master
> Fields...Tasks.TaskID
>
> On the Elements subform: Link Child Fields...SubtaskID and the Link
> Master Fields...Subtasks.SubtaskID
>
> Note: not all tasks have multiple subtasks or elements; a task could
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10989
> have 0 subtask but must have an element (element contains due date).


The way forms and subforms are designed to work is that the main form refers
to the top level table. In your case, this would be Tasks. The subform
then refers to the child table (subtasks). A subform on that form would
then refer to the third level (items). If you establish your relationships
properly and then create your forms this way, Access will handle the whole
thing automagically.

The whole tab thing you want to do is pretty messy from a UI point of view
and would require a lot of scripting. I'm guessing that you're fairly new
to Access, and so you may not choose to try to script this. Post back if
you really DO want to script the whole thing, but I advise you to simply use
Access the way it was designed.

HTH;

Amy


Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Gurbani Jukebox
Listen to Gurbani while surfing SPN!
» Active Discussions
sikhism Who is "Mohan"?
Today 06:52 AM
21 Replies, 319 Views
sikhism need urgent advice.......
Today 06:46 AM
6 Replies, 72 Views
sikhism ਨਾਮਾ
Today 06:37 AM
2 Replies, 45 Views
sikhism Sikh Diamonds Video...
Today 04:23 AM
6 Replies, 112 Views
sikhism Are Creator and Creation...
Today 01:30 AM
44 Replies, 2,833 Views
sikhism Herman Hesse,...
Today 00:54 AM
13 Replies, 225 Views
sikhism On a Scale of Most...
Yesterday 21:42 PM
30 Replies, 1,277 Views
sikhism I became victim by...
Yesterday 19:50 PM
0 Replies, 39 Views
sikhism How important is Matha...
By Ishna
Yesterday 19:05 PM
58 Replies, 1,026 Views
sikhism Sikh Books downloads
Yesterday 15:39 PM
2 Replies, 62 Views
sikhism Salok Sheikh Farid ji...
Yesterday 09:35 AM
0 Replies, 43 Views
sikhism In Punjab, three farmers...
Yesterday 05:36 AM
0 Replies, 45 Views
sikhism Supernatural Sikhs, what...
Yesterday 03:45 AM
19 Replies, 408 Views
sikhism Sukhmani Sahib Astpadi...
26-May-2012 22:57 PM
0 Replies, 46 Views
Do You Think You Are...
26-May-2012 09:59 AM
94 Replies, 8,258 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.2

All times are GMT +6.5. The time now is 07:11 AM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.36195 seconds with 30 queries