Results 1 to 8 of 8
  1. #1
    raffi is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2014
    Location
    Inside a Sub Procedure
    Posts
    88

    SubForm Options


    hi i have a form and a in it a subform and it requery's the subform whenever i add info which it is great an all, but the new information are being added at the very bottom of the subform :S ... is there a way of adding from the top of the subform ?

    thank you

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    I think this could be done by having a date/time field in the table that is used for the sub form that is populated with Now() each time a record is created, then create a query from this table and set the order by of this date/time to Desc
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,641
    That will bring the newly saved record to top but regardless of sort order, the NEW RECORD row will still be at the bottom of the form.
    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.

  4. #4
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    Quote Originally Posted by June7 View Post
    That will bring the newly saved record to top but regardless of sort order, the NEW RECORD row will still be at the bottom of the form.
    Indeed, that is of course correct June. I hadn't realized that was a problem for the OP but you're probably right about that as well. In which case perhaps the OP could create a separate form for the actual data entry? Your thoughts?
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  5. #5
    raffi is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2014
    Location
    Inside a Sub Procedure
    Posts
    88
    ok i had a link between child field and master field date/time, i removed it and it worked, thx hmm ... ill probably make another date/time and set it to date() just for the sake of not overpopulating the subform beneath the data entry table but hey thx guys

  6. #6
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    ..... but hey thx guys
    I'm not certain about this but actually I think June is a "Gal" rather than a "Guy"
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,641
    I won't nitpick over the group reference 'Guys'. Even us 'Gals' do it, it is so ingrained in our conversation.

    I had an uncle named June.
    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.

  8. #8
    raffi is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2014
    Location
    Inside a Sub Procedure
    Posts
    88
    im sorry didn't notice there! haha! nice name tho! =)

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

Similar Threads

  1. ComboBox options
    By dylcon in forum Forms
    Replies: 20
    Last Post: 06-07-2013, 09:26 AM
  2. yes or no options
    By madhu in forum Access
    Replies: 3
    Last Post: 04-18-2013, 07:31 AM
  3. View options not available in subform
    By yacaspe in forum Forms
    Replies: 1
    Last Post: 12-26-2012, 01:03 AM
  4. Subform Setup Issues (Possibly Code Related Options)
    By Scyclone in forum Programming
    Replies: 7
    Last Post: 11-07-2011, 07:26 AM
  5. Sub parameters with options
    By dssrun in forum Programming
    Replies: 2
    Last Post: 07-27-2011, 08:59 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