Skip to main content
Participant
December 14, 2012
Question

how to sort and selection, plz help

  • December 14, 2012
  • 5 replies
  • 896 views

Hello,

I have a access database list, and I can sort with alphabetical list like a, b, c, ...

But now, I only want to get chinese list as chinese version is selected, to get english list as english version is selected, because the database list includes chinese and english information, for example:

Language name        company

cn              yageo     国巨

en              yageo     yageo

cn              kemet     kemet

cn              vishay    vishay

en              nxp        nxp

when sort=y and lang=en, result list will be yageo, nxp

how can I do to get it?

Thanks in Advance!

Valley

This topic is closed to new replies. Start a new post to keep the conversation going.

5 replies

Participating Frequently
December 14, 2012

Are you asking how to filter your recordset? If that's the case, then you need to pass the language key to the SQL select statement to be used in the WHERE clause. For example:

SELECT * from MyTable WHERE lang = "en"

If this is not what you are asking, then please include more details.

Valley88Author
Participant
December 16, 2012

Actually, I cannot get correct answer.

I have a list with many data

How can I get a list with alphabetic=a and language=en thru following?

list.asp?sort=a&lang=en