Results 1 to 2 of 2
  1. #1
    JeroenMioch's Avatar
    JeroenMioch is offline Competent Performer
    Windows Vista Access 2003
    Join Date
    May 2012
    Location
    Den Haag, Netherlands
    Posts
    368

    Form is not displaying newest record first


    Dear programmers,

    Ive been struggeling with this problem for a while now and since were now using Access 2010 i thought to give it another go.

    When i pull up records using my filter it displays the oldest record first in the main form.
    I know theres an option in the preferences to set things ASC or Desc, but this doesnt give the result i want.

    Is there any way i can set my filter to do this for me by adding an extra line of code below ?

    Code:
        Me.FilterPNummer.Requery
        Me.FilterNaam = ""
        Me.FilterKenteken = ""
        Me.Filtersticker = ""
        Me.Filter = "PNummer='" & Me.FilterPNummer & "'"
        Me.FilterOn = True
    Any thoughts would be welcome

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Add an extra line of what code?

    Why does ASC or DESC not give the desired result?

    Filtering doesn't control order, sorting does.

    Either set sort order in the form RecordSource query or in the Order By property.
    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.

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

Similar Threads

  1. Replies: 8
    Last Post: 09-06-2012, 09:53 AM
  2. Select newest Record
    By jbailey4545 in forum Queries
    Replies: 6
    Last Post: 06-22-2012, 01:58 PM
  3. Displaying Most Recent Record
    By viper in forum Forms
    Replies: 7
    Last Post: 11-16-2010, 10:06 AM
  4. Sort oldest to newest on form
    By Desstro in forum Forms
    Replies: 6
    Last Post: 09-18-2010, 05:35 AM
  5. Customized Format for displaying record
    By wasim_sono in forum Reports
    Replies: 1
    Last Post: 10-10-2006, 09:27 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