Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

how to sort and selection, plz help

New Here ,
Dec 13, 2012 Dec 13, 2012

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

TOPICS
Server side applications
829
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 14, 2012 Dec 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 16, 2012 Dec 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 16, 2012 Dec 16, 2012

Thanks, now I got it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 16, 2012 Dec 16, 2012

this

SELECT * from MyTable WHERE lang = "en"

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 20, 2012 Dec 20, 2012
LATEST

I used:

SELECT *

WHERE tb like 'MMColParam%' and Language = 'MM_lang'

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines