Results 1 to 2 of 2
  1. #1
    l3111 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Mar 2011
    Location
    Manchester, UK
    Posts
    38

    Multiple Entries sorted by date

    I currently run a database with a large number of clients who come through a service. To look for a particular person, I have built in a seach function with the following code, that uses a persons unique identifer number (RAISE number). This is unique to the person, not to the period in the service. Some customers are referred more than once, but all entries are stored under thier RAISE number. I would like that once the search is carried out (code for this is below), for it to show the entries with the most recent entry first (using the field called ReferralDate). Is this possible



    Private Sub btnSearch_Click()
    On Error GoTo Err_btnSearch_Click
    Dim stDocName As String
    Dim stLinkCriteria As String
    stDocName = "frmReferralsDischarges"

    stLinkCriteria = "[RAISENumber]=" & Me![txtRAISE]
    DoCmd.OpenForm stDocName, , , stLinkCriteria
    DoCmd.close acForm, "frmSearch"

    Regards

    l3111, Manchester, UK

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Sure; either base frmReferralsDischarges on a query with that sorting applied, or use the Order By property of the form.
    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. Multiple Entries
    By alyon in forum Access
    Replies: 2
    Last Post: 05-15-2012, 07:45 AM
  2. Multiple extra entries
    By EDEd in forum Forms
    Replies: 1
    Last Post: 01-30-2011, 10:59 AM
  3. Multiple entries
    By danelliott in forum Access
    Replies: 3
    Last Post: 11-08-2010, 08:08 AM
  4. Multiple entries
    By Ziggy-R in forum Access
    Replies: 11
    Last Post: 10-03-2010, 07:42 PM
  5. Multiple Query Results Sorted Together
    By Rawb in forum Reports
    Replies: 1
    Last Post: 12-10-2009, 04:05 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