A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Why can't I sort on the Column?



 
 
Thread Tools Display Modes
  #1  
Old July 29th, 2009, 07:01 PM posted to microsoft.public.access.forms
bhammer
external usenet poster
 
Posts: 54
Default Why can't I sort on the Column?

A2003
Datasheet view form bound to a table. First column is bound to primary key
ID and I cannot sort by it (context menu is greyed-out for
Ascending/Descending), Why? I can open the table and sort on that ID column,
but not in the form. In the form all other columns are sort-able.
what's going on?
  #2  
Old July 29th, 2009, 09:04 PM posted to microsoft.public.access.forms
GBA
external usenet poster
 
Posts: 174
Default Why can't I sort on the Column?


check that the form's properties:
Allow Additions
Allow Edits
Allow Deletions

set to 'no' ?? may be cause

"bhammer" wrote:

A2003
Datasheet view form bound to a table. First column is bound to primary key
ID and I cannot sort by it (context menu is greyed-out for
Ascending/Descending), Why? I can open the table and sort on that ID column,
but not in the form. In the form all other columns are sort-able.
what's going on?

  #3  
Old July 29th, 2009, 10:29 PM posted to microsoft.public.access.forms
bhammer
external usenet poster
 
Posts: 54
Default Why can't I sort on the Column?

No, that's not it. I have:

AllowEdits— Yes
AllowDeletions— Yes
AllowAdditions— Yes
DataEntry— No

Strange. I read in Help that calculated fields and memo fields cannot be
sorted on. But this a plain old ID field. . .
  #4  
Old July 29th, 2009, 11:12 PM posted to microsoft.public.access.forms
bhammer
external usenet poster
 
Posts: 54
Default Why can't I sort on the Column?

I found it--the stinkin' Tab property! I had it set to No because I wanted
the focus to go the next column on open. Well, who knew that with Tab set to
No it also disables the ability to Sort by that column.

You cannot sort on a field whose Tab property is set to No.

Go figure. . .
-bhammer

"bhammer" wrote:

No, that's not it. I have:

AllowEdits— Yes
AllowDeletions— Yes
AllowAdditions— Yes
DataEntry— No

Strange. I read in Help that calculated fields and memo fields cannot be
sorted on. But this a plain old ID field. . .

  #5  
Old July 30th, 2009, 02:40 PM posted to microsoft.public.access.forms
GBA
external usenet poster
 
Posts: 174
Default Why can't I sort on the Column?

wow - I had no idea....thanks for posting your solution as I'll remember next
time...

"bhammer" wrote:

I found it--the stinkin' Tab property! I had it set to No because I wanted
the focus to go the next column on open. Well, who knew that with Tab set to
No it also disables the ability to Sort by that column.

You cannot sort on a field whose Tab property is set to No.

Go figure. . .
-bhammer

"bhammer" wrote:

No, that's not it. I have:

AllowEdits— Yes
AllowDeletions— Yes
AllowAdditions— Yes
DataEntry— No

Strange. I read in Help that calculated fields and memo fields cannot be
sorted on. But this a plain old ID field. . .

  #6  
Old July 30th, 2009, 07:38 PM posted to microsoft.public.access.forms
Dirk Goldgar
external usenet poster
 
Posts: 2,529
Default Why can't I sort on the Column?

"bhammer" wrote in message
...
I found it--the stinkin' Tab property! I had it set to No because I wanted
the focus to go the next column on open. Well, who knew that with Tab set
to
No it also disables the ability to Sort by that column.

You cannot sort on a field whose Tab property is set to No.



I am not able to reproduce this. When you say "Tab property", do you mean
"Tab Stop property"? There is no "Tab" property. But I took a datasheet
form, changed the Tab Stop property of the text box bound to the table's
autonumber primary key, and was able to sort on that field with no problem.
Maybe I am misunderstanding you, or maybe there's some additional
contributing factor. Is there anything else unusual about your form at all?

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)

  #7  
Old July 31st, 2009, 03:13 AM posted to microsoft.public.access.forms
bhammer
external usenet poster
 
Posts: 54
Default Why can't I sort on the Column?

Dirk,

Nothing unusual about the table or form that I can see.

I was able to reproduce it using a different table with only two fields; I
used the Form Wizard to make a form based on the table; I changed the Tab
Stop property of the textbox bound to the autonumber ID field to 'No' (all
other properties are defaults); then changed the view to Datasheet; right
clicked on the ID textbox to get the default context menu--and BAM--the two
Sort commands are greyed-out. In Form View they are NOT greyed out.

Apparently this only has to do with the Form Datasheet view. Also maybe
specific to Access 2003 with mdb's in Access 2000 format. That's I'm using.
WinXP.

Strange one!

-Brad
  #8  
Old July 31st, 2009, 04:10 AM posted to microsoft.public.access.forms
Dirk Goldgar
external usenet poster
 
Posts: 2,529
Default Why can't I sort on the Column?

"bhammer" wrote in message
...
Dirk,

Nothing unusual about the table or form that I can see.

I was able to reproduce it using a different table with only two fields; I
used the Form Wizard to make a form based on the table; I changed the Tab
Stop property of the textbox bound to the autonumber ID field to 'No' (all
other properties are defaults); then changed the view to Datasheet; right
clicked on the ID textbox to get the default context menu--and BAM--the
two
Sort commands are greyed-out. In Form View they are NOT greyed out.

Apparently this only has to do with the Form Datasheet view. Also maybe
specific to Access 2003 with mdb's in Access 2000 format. That's I'm
using.
WinXP.

Strange one!


Interesting. I still can't reproduce it, even following your steps as best
I can. I'm using Access 2003 SP3, and the database I'm testing with is in
Access 2000 format. Do you have all service packs applied? Im running
under Vista, not XP, but I don't think that's likely to be the reason for
the difference.

If you'd like to send me a sample database to examine, you can get my real
e-mail address from my website, which is listed in my sig below.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)

  #9  
Old July 31st, 2009, 02:38 PM posted to microsoft.public.access.forms
GBA
external usenet poster
 
Posts: 174
Default Why can't I sort on the Column?

plz post your results.

I have a form in Access02/XP where the sort is greyed out. I haven't been
able to figure out why.



"Dirk Goldgar" wrote:

"bhammer" wrote in message
...
Dirk,

Nothing unusual about the table or form that I can see.

I was able to reproduce it using a different table with only two fields; I
used the Form Wizard to make a form based on the table; I changed the Tab
Stop property of the textbox bound to the autonumber ID field to 'No' (all
other properties are defaults); then changed the view to Datasheet; right
clicked on the ID textbox to get the default context menu--and BAM--the
two
Sort commands are greyed-out. In Form View they are NOT greyed out.

Apparently this only has to do with the Form Datasheet view. Also maybe
specific to Access 2003 with mdb's in Access 2000 format. That's I'm
using.
WinXP.

Strange one!


Interesting. I still can't reproduce it, even following your steps as best
I can. I'm using Access 2003 SP3, and the database I'm testing with is in
Access 2000 format. Do you have all service packs applied? Im running
under Vista, not XP, but I don't think that's likely to be the reason for
the difference.

If you'd like to send me a sample database to examine, you can get my real
e-mail address from my website, which is listed in my sig below.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)

  #10  
Old July 31st, 2009, 05:37 PM posted to microsoft.public.access.forms
bhammer
external usenet poster
 
Posts: 54
Default Why can't I sort on the Column?

Dirk, GBA,

I sent a test mdb to Dirk's email per your request.

I started from scratch with new mdb in Access 2003 SP3 (11.8204.8221) under
WindowsXP SP3 Build 2600 version 5.1.2600. I made one table in design view
with two fields: ID (Autonumber), and (Field Text). Then using the Make Form
Wizard, selected the table and all fields. Then the only thing I changed in
the form design was the Tab Stop property on the Other tab. Changed it from
default Yes, to No. All others props are default. In Form View the Sort
commands are enabled on the ID field's context menu, but with the form in
Datasheet view, the sort commands are disabled (grayed-out). Same as before.
 




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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:42 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.