Solved

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

Posted on 2014-02-08
5
834 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 50

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 37

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 50

Expert Comment

by:Gustav Brock
ID: 39844211
You are welcome!

/gustav
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

738 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