Results 1 to 6 of 6
  1. #1
    mikehorse is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    9

    Adding mulitple records from same form


    Hi.
    I've looked around the forum and can't find (or more likely don't understand) the answer, to my query;

    I have a table called Tasks - Contains tasks names and other task details.
    TaskID (PK)
    TaskName
    ...
    and a table call Steps - Each entry is a step(s) linked to a specific test

    StepID
    StepName
    StepAction
    TaskID (FK)

    I want to add a button called 'Add Steps' to my Task Form, that will open my step form (a continuous form) and populate the task Id field for each step I need and upload to step table.

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I am confused on your table structure.

    Are three tables involved? Tasks, Steps and a junction table?

    Is this true: "One Task can have many steps and one step can be associated with many Tasks"?

  3. #3
    mikehorse is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    9
    Hi

    The table structure I have is a one to many relationship between Task and Steps. No linking table.

  4. #4
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    How do you decide/pick what Steps are needed for a Task?
    Do you fill in the "StepName" and "StepAction" fields later?

  5. #5
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    So why not simply add the Steps Form to the Tasks Form as a Subform? The TaskID will then be automatically passed to the Steps Form.

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  6. #6
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    @Linq

    Doh!!!!!!

    (I should engage brain before starting fingers....)

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Adding Records with a Form
    By dylcon in forum Programming
    Replies: 12
    Last Post: 05-29-2013, 06:32 AM
  2. Replies: 10
    Last Post: 01-10-2011, 07:52 PM
  3. adding records through form
    By Rayk in forum Forms
    Replies: 1
    Last Post: 01-09-2010, 07:55 AM
  4. Condense Mulitple Records
    By jquickuk in forum Queries
    Replies: 1
    Last Post: 08-10-2009, 08:43 AM
  5. Replies: 5
    Last Post: 08-06-2009, 11:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums