Results 1 to 3 of 3
  1. #1
    whooke is offline Novice
    Windows 8 Access 2013
    Join Date
    Sep 2014
    Posts
    1

    Simple Subform Problem

    I'm sure there is an easy fix but I can't seem to find it. I have a form with a subform, with the intention of allowing the user to add data to the subform which would push it to the table. However, currently my subform is pulling the first record from the table and displaying it. I would like the subform to be blank when displayed to the user, so that data could be added to the form and be pushed to the table.

    It seems as if there should be a simple property change that would allow me to change the direction the data is pushed. Any ideas how I can make this happen?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    What is relationship of form and subform? Is main form bound to a "master" table and subform is bound to dependent "child" table? Are subform container Master/Child links properties set?

    Data is 'pushed' to table by entering values into new record row. Can set a form's DataEntry property to Yes and existing records will not be displayed.
    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
    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
    Alternately, you could use this in the Form the Subform is based on:

    Code:
    Private Sub Form_Load()
      DoCmd.GoToRecord , , acNewRec
    End Sub

    This will open the Subform to a New Record, but also allow existing Subform Records to be viewed, as well.

    Linq ;0)>

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

Similar Threads

  1. Problem creating a simple query
    By perksy in forum Access
    Replies: 2
    Last Post: 01-03-2012, 09:42 AM
  2. Very simple problem
    By alexc333 in forum Queries
    Replies: 8
    Last Post: 07-21-2011, 07:35 AM
  3. Simple Problem with Validations
    By oleBucky in forum Forms
    Replies: 11
    Last Post: 04-12-2011, 05:39 PM
  4. Simple query problem
    By rajnag in forum Access
    Replies: 4
    Last Post: 08-19-2010, 05:09 AM
  5. simple form problem
    By kcsun in forum Forms
    Replies: 0
    Last Post: 08-12-2010, 12:28 AM

Tags for this Thread

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