Solved

Datasheet view form - Can't sort on a calculated field

Posted on 2014-02-08
5
810 Views
Last Modified: 2014-02-08
I have a form which opens in datasheet view mode.  There are several fields on the form that are "sortable".  But then there is one particular field that is a calculated field that I can't sort by.  Is it possible that you can't sort with a calculated field?

I have tab stop - Yes
Enabled = Yes
Locked = No

If any of that is causing this.

--Steve
0
Comment
Question by:SteveL13
  • 2
  • 2
5 Comments
 
LVL 49

Accepted Solution

by:
Gustav Brock earned 500 total points
ID: 39844159
If you move the calculation to the query you use as source, it should be doable.

/gustav
0
 
LVL 35

Expert Comment

by:PatHartman
ID: 39844181
You can't sort on the field because it is not part of the recordsource.  It is a property of the form.  Gustav's solution is what you need to do.
0
 

Author Comment

by:SteveL13
ID: 39844184
Yes.  You are correct.  I moved the calculation to the query and removed it from the field property on the form and it works perfectly.  Thank you very much.
0
 

Author Closing Comment

by:SteveL13
ID: 39844186
Excellent again.  Thank you.
0
 
LVL 49

Expert Comment

by:Gustav Brock
ID: 39844211
You are welcome!

/gustav
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question