473,395 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Sort access database

I have a database with swedish words but cant sort them in the correct
order. When I hit sort Ascending the swedish letters Å Ä and Ö is
not sorter correctly.
How do I change this???

Nov 13 '05 #1
11 1894
On 14 Apr 2005 07:31:07 -0700, la*****@home.se wrote:
I have a database with swedish words but cant sort them in the correct
order. When I hit sort Ascending the swedish letters Å Ä and Ö is
not sorter correctly.
How do I change this???


(in danish)
menuline->funktioner->indstillinger->generelt->sorteringsrækkefølge

--
Benny Andersen
Nov 13 '05 #2
that didnt help! it still sorts the table like this:

Åby
Angered
Backa
Örebro
Oslo
Ystad

I want it like this:

Angered
Backa
Oslo
Ystad
Åby
Örebro

To be mentioned is that I am getting the table with an ADO recordset:
strSQL = "SELECT * FROM Adresstable ORDER BY Adress"

When I connect to the database I do it like this:
cDB.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & "Locale
Identifier=1053;" & "Data Source=" & server.MapPath("data.MDB")

I read that I could put the Locale Identifier=1053 (swedish/finnish)
but That didnt help either?????

Someone??
/M

Nov 13 '05 #3
la*****@home.se wrote:
When I connect to the database I do it like this:
cDB.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & "Locale
Identifier=1053;" & "Data Source=" & server.MapPath("data.MDB")


Did you try 1033?
Nov 13 '05 #4
Yes, but It didnt help????????????

Nov 13 '05 #5
la*****@home.se wrote in news:1113575735.155515.209280
@g14g2000cwa.googlegroups.com:
Yes, but It didnt help????????????


You could try this:

1. Make a safety copy of your table!

2. Check to be sure you have a safety copy of your table! Then be sure you
have a reference to ADO.

3. Check to be sure you have a safety copy of your table! Then run this
code:

CurrentProject.Connection.Execute "ALTER TABLE Yourtable ALTER Column
YourColumn binary"

(Remove line breaks before using.)

4. Try the sort again.

Did I mention: Make a safety copy of your table!

???

If not then be sure

TO

Make a safety copy of your table!

--
Lyle
--
Nov 13 '05 #6
ahhh.. no that cant help, what would it help to make my column
binary...??

I need to fix this problem, someone?

Nov 13 '05 #7
la*****@home.se wrote:
ahhh.. no that cant help, what would it help to make my column
binary...??


It would accomplish a binary sort, which, it seems, is what you want.

--
--
Lyle
--
Nov 13 '05 #8
Lyle wrote
la*****@home.se wrote:
ahhh.. no that cant help, what would it help to make my column
binary...??


It would accomplish a binary sort, which, it seems, is what you want.

Assuming that I understand what's going on (always a problem, that) then
how about creating a function that loops through a string and converts
all its characters to their ASCII equivalents. Then you could sort on a
query using that function in a calculated field.

Don't laugh, I actually had to do this once, but it's slow.

I'm going to go away and have a play with this. Wish me luck.
--
Albert Marshall
Marshall Le Botmel Ltd
01242 222017
Nov 13 '05 #9
Albert Marshall wrote:
Lyle wrote
la*****@home.se wrote:
ahhh.. no that cant help, what would it help to make my column
binary...??

It would accomplish a binary sort, which, it seems, is what you want.

Assuming that I understand what's going on (always a problem, that) then
how about creating a function that loops through a string and converts
all its characters to their ASCII equivalents. Then you could sort on a
query using that function in a calculated field.

Don't laugh, I actually had to do this once, but it's slow.


C'mon Albert, admit it. It was your grandfather, right? And it just
finished yesterday....

--
--
Lyle
Nov 13 '05 #10
Can't say for certain, as I haven't tested, but
http://msdn.microsoft.com/library/en...etprovspec.asp
seems to imply that the Connection should have a property named
DBPROP_INIT_LCID that you should be able to set.

See whether

cDB.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" &
server.MapPath("data.MDB")
cDB.Properties("DBPROP_INIT_LCID") = 1054

works.

On the other hand, section 5.1 of http://www.winsoft.sk/adofaq.htm suggests:

cDB.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & "Locale
Identifier=0x041d;" & "Data Source=" & server.MapPath("data.MDB")

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

<la*****@home.se> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
that didnt help! it still sorts the table like this:

Åby
Angered
Backa
Örebro
Oslo
Ystad

I want it like this:

Angered
Backa
Oslo
Ystad
Åby
Örebro

To be mentioned is that I am getting the table with an ADO recordset:
strSQL = "SELECT * FROM Adresstable ORDER BY Adress"

When I connect to the database I do it like this:
cDB.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & "Locale
Identifier=1053;" & "Data Source=" & server.MapPath("data.MDB")

I read that I could put the Locale Identifier=1053 (swedish/finnish)
but That didnt help either?????

Someone??
/M
Nov 13 '05 #11
Thanks everyone for your help, but nothing helped...
I finally found the problem, the database must have been corrupt. I
transfered all database tables to a new database and everything worked
fine..

Things like this really makes you mad...

Another question:
Where are the good reference guides for asp on the net.. I have been
searching for months now. PHP.net and mysql's reference guides are so
much better...

Nov 13 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Matt | last post by:
Hi all, We recently upsized two Microsoft Access Databases to SQL. We're using an ADP (2002) as the front end. All the conversion issues have been resolved, except for one: Whenever we...
12
by: MLH | last post by:
I have created two forms: frmBrowseNegsMainform and frmBrowseNegsSubform. I put a subform control on the first of these. The SourceObject property for the subform control is, of course,...
11
by: Leon | last post by:
I have six textbox controls on my webform that allows the user to enter any numbers from 1 to 25 in any order. However, I would like to sort those numbers from least to greatest before sending them...
6
by: mcollier | last post by:
I have some VB6 code that calls a SELECT query in Microsoft Access. When I run the query from access, the results appear in not particular order. However, when I call the query from VB6, via ADO,...
2
by: adrian.chandler | last post by:
Hi all, I have been using letter and symbol codes such as GNU< GNU\ GNU} GNUˆ in an Access table. I was surprised to see that when the table was sorted on this field, the order is: GNUˆ...
6
by: Julian | last post by:
Hi, I am a very beginner in databases. I created a database table in Access 2003 and OOo 2.03 that includes name, address, postcode, phone numbers etc of our customers. I would like to sort...
6
by: Chris Zoper | last post by:
Hello, I have a form that shows a lot of records based on a passthrough query to a SQL Server database. I noticed that the Filter and the Sort property of the form do not properly work, often...
7
by: wwwords | last post by:
I have a form in Access 2007 containing a subform. The control source of the latter is SELECT DISTINCTROW ., ., ., ., . FROM ; which is undoubtedly correct. However, if I click on the down...
5
by: muskie | last post by:
I've looked through as many posts about this as possible, but all end with no resolution. I simply need records from a table in random order, and I will be calling this recordset in a SQL...
6
by: qfchen | last post by:
I have an employee database using access, In VB code, I need to sort through the database via Employee ID, The total employee record is about 8000, I sort from the first employee till the end. I feel...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.