dbTalk Databases Forums  

Dropdown

comp.databases.ms-access comp.databases.ms-access


Discuss Dropdown in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
bsn
 
Posts: n/a

Default Dropdown - 12-20-2011 , 08:40 AM






Hi NG

I have two dropdowns, that sorts on IDnumber and IDtext...both ASC...
I made two queryes for the dropdown...
1 - with IDnumber in first colown in querybuilder - performing ok
2 - with IDtext in first colown in querybuilder - when I type some text with
startletter up to "k" the words shows up sorted fine in the dropdown, but
when I type startletter after "k" the words dont show up sorted in the
dropdown...

Anybody...

Thx in advance...
Bjarne
"Every day new surprises"

Reply With Quote
  #2  
Old   
Patrick Finucane
 
Posts: n/a

Default Re: Dropdown - 12-20-2011 , 02:14 PM






On Dec 20, 8:40*am, "bsn" <bsnSNABELAoncableDOTdk> wrote:
Quote:
Hi NG

I have two dropdowns, that sorts on IDnumber and IDtext...both ASC...
I made two queryes for the dropdown...
1 - with IDnumber in first colown in querybuilder - performing ok
2 - with IDtext in first colown in querybuilder - when I type some text with
startletter up to "k" the words shows up sorted fine in the dropdown, but
when I type startletter after "k" the words dont show up sorted in the
dropdown...

Anybody...

Thx in advance...
Bjarne
"Every day new surprises"
Is the rowsource sorted on the text field?

Reply With Quote
  #3  
Old   
bsn
 
Posts: n/a

Default Re: Dropdown - 12-20-2011 , 04:32 PM



"Patrick Finucane" <patrickfinucanetx (AT) gmail (DOT) com> skrev i en meddelelse
news:e0932713-77db-4e84-8628-34e14525e830 (AT) v24g2000yqk (DOT) googlegroups.com...
On Dec 20, 8:40 am, "bsn" <bsnSNABELAoncableDOTdk> wrote:
Quote:
Hi NG

I have two dropdowns, that sorts on IDnumber and IDtext...both ASC...
I made two queryes for the dropdown...
1 - with IDnumber in first colown in querybuilder - performing ok
2 - with IDtext in first colown in querybuilder - when I type some text
with
startletter up to "k" the words shows up sorted fine in the dropdown, but
when I type startletter after "k" the words dont show up sorted in the
dropdown...

Anybody...

Thx in advance...
Bjarne
"Every day new surprises"
Is the rowsource sorted on the text field?

----------------------------------------------
Yes...

Bjarne

Reply With Quote
  #4  
Old   
Phil
 
Posts: n/a

Default Re: Dropdown - 12-21-2011 , 04:17 AM



On 20/12/2011 22:32:44, "bsn" wrote:
Quote:
"Patrick Finucane" <patrickfinucanetx (AT) gmail (DOT) com> skrev i en meddelelse
news:e0932713-77db-4e84-8628-34e14525e830 (AT) v24g2000yqk (DOT) googlegroups.com...
On Dec 20, 8:40 am, "bsn" <bsnSNABELAoncableDOTdk> wrote:
Hi NG

I have two dropdowns, that sorts on IDnumber and IDtext...both ASC...
I made two queryes for the dropdown...
1 - with IDnumber in first colown in querybuilder - performing ok
2 - with IDtext in first colown in querybuilder - when I type some text
with
startletter up to "k" the words shows up sorted fine in the dropdown, but
when I type startletter after "k" the words dont show up sorted in the
dropdown...

Anybody...

Thx in advance...
Bjarne
"Every day new surprises"

Is the rowsource sorted on the text field?

----------------------------------------------
Yes...

Bjarne


Have you got an illegal character in your IDText?

In your query, add Expr1:Ascii(IDText)

Create a function

Function Ascii(StgIn As String) As String

Dim i As Integer

For i = 1 To Len(StgIn)
Ascii = Ascii & Asc(Mid(StgIn, i, 1)) & " "
If If Asc(Mid(StgIn, i, 1)) < 32 Or Asc(Mid(StgIn, i, 1)) > 126 Then ' Space
to z Stop
End If
Next i

End Function
See if that shows up anything

Phil

Reply With Quote
  #5  
Old   
bsn
 
Posts: n/a

Default Re: Dropdown - 12-21-2011 , 09:47 AM



"Phil" <phil (AT) stantonfamily (DOT) co.uk> skrev i en meddelelse
news:jcsbna$6dk$1 (AT) speranza (DOT) aioe.org...
Quote:
On 20/12/2011 22:32:44, "bsn" wrote:

"Patrick Finucane" <patrickfinucanetx (AT) gmail (DOT) com> skrev i en meddelelse
news:e0932713-77db-4e84-8628-34e14525e830 (AT) v24g2000yqk (DOT) googlegroups.com...
On Dec 20, 8:40 am, "bsn" <bsnSNABELAoncableDOTdk> wrote:
Hi NG

I have two dropdowns, that sorts on IDnumber and IDtext...both ASC...
I made two queryes for the dropdown...
1 - with IDnumber in first colown in querybuilder - performing ok
2 - with IDtext in first colown in querybuilder - when I type some text
with
startletter up to "k" the words shows up sorted fine in the dropdown,
but
when I type startletter after "k" the words dont show up sorted in the
dropdown...

Anybody...

Thx in advance...
Bjarne
"Every day new surprises"

Is the rowsource sorted on the text field?

----------------------------------------------
Yes...

Bjarne



Have you got an illegal character in your IDText?

In your query, add Expr1:Ascii(IDText)

Create a function

Function Ascii(StgIn As String) As String

Dim i As Integer

For i = 1 To Len(StgIn)
Ascii = Ascii & Asc(Mid(StgIn, i, 1)) & " "
If If Asc(Mid(StgIn, i, 1)) < 32 Or Asc(Mid(StgIn, i, 1)) > 126 Then '
Space
to z Stop
End If
Next i

End Function
See if that shows up anything

Phil
Thx for answer
Yes I´v got 197(Ææ)+198(Øø)+216(Åå) - danish letters...
Can an illegal character do so, that the sorting/showing stops in the
(combo)dropdown...???
Bjarne

Reply With Quote
  #6  
Old   
Phil
 
Posts: n/a

Default Re: Dropdown - 12-21-2011 , 10:58 AM



On 21/12/2011 15:47:48, "bsn" wrote:
Quote:
"Phil" <phil (AT) stantonfamily (DOT) co.uk> skrev i en meddelelse
news:jcsbna$6dk$1 (AT) speranza (DOT) aioe.org...
On 20/12/2011 22:32:44, "bsn" wrote:

"Patrick Finucane" <patrickfinucanetx (AT) gmail (DOT) com> skrev i en meddelelse
news:e0932713-77db-4e84-8628-34e14525e830 (AT) v24g2000yqk (DOT) googlegroups.com...
On Dec 20, 8:40 am, "bsn" <bsnSNABELAoncableDOTdk> wrote:
Hi NG

I have two dropdowns, that sorts on IDnumber and IDtext...both ASC...
I made two queryes for the dropdown...
1 - with IDnumber in first colown in querybuilder - performing ok
2 - with IDtext in first colown in querybuilder - when I type some text
with
startletter up to "k" the words shows up sorted fine in the dropdown,
but
when I type startletter after "k" the words dont show up sorted in the
dropdown...

Anybody...

Thx in advance...
Bjarne
"Every day new surprises"

Is the rowsource sorted on the text field?

----------------------------------------------
Yes...

Bjarne



Have you got an illegal character in your IDText?

In your query, add Expr1:Ascii(IDText)

Create a function

Function Ascii(StgIn As String) As String

Dim i As Integer

For i = 1 To Len(StgIn)
Ascii = Ascii & Asc(Mid(StgIn, i, 1)) & " "
If If Asc(Mid(StgIn, i, 1)) < 32 Or Asc(Mid(StgIn, i, 1)) > 126 Then '
Space
to z Stop
End If
Next i

End Function
See if that shows up anything

Phil

Thx for answer
Yes I´v got 197(Ææ)+198(Øø)+216(Åå) - danish letters...
Can an illegal character do so, that the sorting/showing stops in the
(combo)dropdown...???
Bjarne


That, I don't know.

Try making a copy of the table and eliminate those words with the Danish
letters and see if the combo works with the "cleaned up" table. That might at
least give you the cause of the problem, then we can try to find a solution.
Phil

Reply With Quote
  #7  
Old   
bsn
 
Posts: n/a

Default Re: Dropdown - 12-22-2011 , 01:19 AM



"Phil" <phil (AT) stantonfamily (DOT) co.uk> skrev i en meddelelse
news:jct36q$2em$1 (AT) speranza (DOT) aioe.org...
Quote:
On 21/12/2011 15:47:48, "bsn" wrote:

"Phil" <phil (AT) stantonfamily (DOT) co.uk> skrev i en meddelelse
news:jcsbna$6dk$1 (AT) speranza (DOT) aioe.org...
On 20/12/2011 22:32:44, "bsn" wrote:

"Patrick Finucane" <patrickfinucanetx (AT) gmail (DOT) com> skrev i en meddelelse
news:e0932713-77db-4e84-8628-34e14525e830 (AT) v24g2000yqk (DOT) googlegroups.com...
On Dec 20, 8:40 am, "bsn" <bsnSNABELAoncableDOTdk> wrote:
Hi NG

I have two dropdowns, that sorts on IDnumber and IDtext...both ASC...
I made two queryes for the dropdown...
1 - with IDnumber in first colown in querybuilder - performing ok
2 - with IDtext in first colown in querybuilder - when I type some
text
with
startletter up to "k" the words shows up sorted fine in the dropdown,
but
when I type startletter after "k" the words dont show up sorted in the
dropdown...

Anybody...

Thx in advance...
Bjarne
"Every day new surprises"

Is the rowsource sorted on the text field?

----------------------------------------------
Yes...

Bjarne



Have you got an illegal character in your IDText?

In your query, add Expr1:Ascii(IDText)

Create a function

Function Ascii(StgIn As String) As String

Dim i As Integer

For i = 1 To Len(StgIn)
Ascii = Ascii & Asc(Mid(StgIn, i, 1)) & " "
If If Asc(Mid(StgIn, i, 1)) < 32 Or Asc(Mid(StgIn, i, 1)) > 126 Then '
Space
to z Stop
End If
Next i

End Function
See if that shows up anything

Phil

Thx for answer
Yes I´v got 197(Ææ)+198(Øø)+216(Åå) - danish letters...
Can an illegal character do so, that the sorting/showing stops in the
(combo)dropdown...???
Bjarne



That, I don't know.

Try making a copy of the table and eliminate those words with the Danish
letters and see if the combo works with the "cleaned up" table. That might
at
least give you the cause of the problem, then we can try to find a
solution.
Phil
Still the same problem...:-(
The query contains 140000 records...
U can see the case here : http://hoejbynet.dk/test/test.html
Bjarne

Reply With Quote
  #8  
Old   
Phil
 
Posts: n/a

Default Re: Dropdown - 12-22-2011 , 03:41 AM



On 20/12/2011 22:32:44, "bsn" wrote:
Quote:
"Patrick Finucane" <patrickfinucanetx (AT) gmail (DOT) com> skrev i en meddelelse
news:e0932713-77db-4e84-8628-34e14525e830 (AT) v24g2000yqk (DOT) googlegroups.com...
On Dec 20, 8:40 am, "bsn" <bsnSNABELAoncableDOTdk> wrote:
Hi NG

I have two dropdowns, that sorts on IDnumber and IDtext...both ASC...
I made two queryes for the dropdown...
1 - with IDnumber in first colown in querybuilder - performing ok
2 - with IDtext in first colown in querybuilder - when I type some text
with
startletter up to "k" the words shows up sorted fine in the dropdown, but
when I type startletter after "k" the words dont show up sorted in the
dropdown...

Anybody...

Thx in advance...
Bjarne
"Every day new surprises"

Is the rowsource sorted on the text field?

----------------------------------------------
Yes...

Bjarne


Have you got an illegal character in your IDText?

In your query, add Expr1:Ascii(IDText)

Create a function

Function Ascii(StgIn As String) As String

Dim i As Integer

For i = 1 To Len(StgIn)
Ascii = Ascii & Asc(Mid(StgIn, i, 1)) & " "
If If Asc(Mid(StgIn, i, 1)) < 32 Or Asc(Mid(StgIn, i, 1)) > 126 Then ' Space
to z Stop
End If
Next i

End Function
See if that shows up anything

Phil

Reply With Quote
  #9  
Old   
Phil
 
Posts: n/a

Default Re: Dropdown - 12-22-2011 , 03:41 AM



On 21/12/2011 15:47:48, "bsn" wrote:
Quote:
"Phil" <phil (AT) stantonfamily (DOT) co.uk> skrev i en meddelelse
news:jcsbna$6dk$1 (AT) speranza (DOT) aioe.org...
On 20/12/2011 22:32:44, "bsn" wrote:

"Patrick Finucane" <patrickfinucanetx (AT) gmail (DOT) com> skrev i en meddelelse
news:e0932713-77db-4e84-8628-34e14525e830 (AT) v24g2000yqk (DOT) googlegroups.com...
On Dec 20, 8:40 am, "bsn" <bsnSNABELAoncableDOTdk> wrote:
Hi NG

I have two dropdowns, that sorts on IDnumber and IDtext...both ASC...
I made two queryes for the dropdown...
1 - with IDnumber in first colown in querybuilder - performing ok
2 - with IDtext in first colown in querybuilder - when I type some text
with
startletter up to "k" the words shows up sorted fine in the dropdown,
but
when I type startletter after "k" the words dont show up sorted in the
dropdown...

Anybody...

Thx in advance...
Bjarne
"Every day new surprises"

Is the rowsource sorted on the text field?

----------------------------------------------
Yes...

Bjarne



Have you got an illegal character in your IDText?

In your query, add Expr1:Ascii(IDText)

Create a function

Function Ascii(StgIn As String) As String

Dim i As Integer

For i = 1 To Len(StgIn)
Ascii = Ascii & Asc(Mid(StgIn, i, 1)) & " "
If If Asc(Mid(StgIn, i, 1)) < 32 Or Asc(Mid(StgIn, i, 1)) > 126 Then '
Space
to z Stop
End If
Next i

End Function
See if that shows up anything

Phil

Thx for answer
Yes I´v got 197(Ææ)+198(Øø)+216(Åå) - danish letters...
Can an illegal character do so, that the sorting/showing stops in the
(combo)dropdown...???
Bjarne


That, I don't know.

Try making a copy of the table and eliminate those words with the Danish
letters and see if the combo works with the "cleaned up" table. That might at
least give you the cause of the problem, then we can try to find a solution.
Phil

Reply With Quote
  #10  
Old   
Phil
 
Posts: n/a

Default Re: Dropdown - 12-22-2011 , 03:43 AM



Quote:
Still the same problem...:-(
The query contains 140000 records...
U can see the case here : http://hoejbynet.dk/test/test.html
Bjarne

Well the sorting on your example appears correct. Where does it go wrong? Can
you show an example of where it changes from being sorted correctly to wher
the sorting goes wrong Phil

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.