Results 1 to 4 of 4

Thread: [RESOLVED] How to sort the records?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2007
    Location
    Malaysia
    Posts
    1,370

    Resolved [RESOLVED] How to sort the records?

    How to sort the record? I want to sort this two field name "pemilik.Pemilik1"and "[Prestasi hasil].Plot" field name . I relate three tables using "Plot" field name. My tables name is "[Prestasi hasil]","tanah", and "pemilik"

    .Open "SELECT pemilik.Pemilik1,pemilik.Pemilik2,[Prestasi hasil].Plot FROM [Prestasi hasil],pemilik,tanah where [Prestasi hasil].Plot=pemilik.Plot and [Prestasi hasil].Plot=tanah.PLOT"


  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: How to sort the records?

    Do a GROUP BY on these fields.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2007
    Location
    Malaysia
    Posts
    1,370

    Re: How to sort the records?

    What difference between Group by and Order by?

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: How to sort the records?

    Actually there is a difference and I should have said ORDER BY (which is actually what I meant)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width