Results 1 to 3 of 3
  1. #1
    kpit is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2019
    Posts
    5

    Parent Form Creating a "blank record"

    I have a table that collects time tracking information for employees. When doing data entry for their time, they may have several projects for any given "Weekending", so we created a form with a subform. The parent form has the user pick their name and the weekending date from drop-downs from the Time Tracking table. The subform contains the detail fields from the Time Tracking, such as the project name, number of hours, activity completed, etc. Everything seems to work fine until you go to the Time Tracking table where there is a record for the person and the weekend with no detail AS WELL AS the name/weekending and all of the detail for the person/week. Essentially, the master form seems to be creating a record with only the name/weekending and THEN collecting the name/weekending with the detail. How do I stop it from creating that first non-detail record?



    Thank you!!!!!!!!!!!!!
    kpit

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Need to know more about structure. What is the RecordSource for each form? What code is running behind the forms? When they pick name and weekending, is that to create a main record or search for existing?

    If you want to provide db for analysis, follow instructions at bottom of my post.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    kpit is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2019
    Posts
    5
    The record source is the Time Tracking table; in the TT table there is a Name field which is a look up from typed list and a weekending field also a look up from typed list. They are selecting the name/week ending so they pick it once and then add detail. For example, for this week, Mary might have 6 detail records for 6 projects she worked on with time, accomplishments etc for each one. What is happening is that the Time Tracking table captures the 6 detail records PERFECTLY, but it first created a 7th record with just Mary's name and the weekend ending date, so it created 7 records. It's making me crazy. Let me know if this is enough to help eliminate this initial record or if I should provide the db. I inherited this project from someone and am doing my best to taking it over the finish line

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

Similar Threads

  1. Replies: 1
    Last Post: 02-12-2019, 03:11 AM
  2. Replies: 1
    Last Post: 09-07-2015, 08:00 AM
  3. Replies: 3
    Last Post: 02-08-2015, 02:43 PM
  4. Replies: 8
    Last Post: 04-18-2013, 04:41 PM
  5. Replies: 0
    Last Post: 05-04-2010, 06:39 AM

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