Solved

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

Posted on 2014-02-08
5
829 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 36

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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

749 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