Results 1 to 4 of 4
  1. #1
    jpkeller55 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    169

    Get Subform to point at first record

    I have a form (frmQuestionDetail) with a subform (frmQandRsubform) that opens in Datasheet view. The subform is opening with the record indicator pointing to the New Record line. How can I get the pointer on the subform to show at the first record instead of new record?

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,525
    Does the subform show the existing records? The behavior you desire is what should happen by default, as long as the data entry property of the form is not set to Yes. If that property is No, then I suspect some code or macro is running when the form opens to move to a new record. Check the load and open events.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    jpkeller55 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    169
    Well, I feel foolish on this as I did have code written earlier to open the form at a new record. I removed the code and now it works. I had forgotten I had put that code in...wow, that is disturbing!

  4. #4
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,525
    We've all done it at one time or another!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Create new record in subform
    By david.paige in forum Forms
    Replies: 3
    Last Post: 08-16-2010, 02:00 PM
  2. Replies: 5
    Last Post: 06-29-2010, 01:24 PM
  3. How to populate a subform using a record set
    By new2access123 in forum Forms
    Replies: 5
    Last Post: 03-01-2010, 10:32 PM
  4. new record is subform
    By Seven in forum Forms
    Replies: 5
    Last Post: 01-10-2010, 08:24 PM
  5. Subform add new record
    By ricardo9211 in forum Forms
    Replies: 0
    Last Post: 08-26-2009, 12:01 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