Solved

Datasheet view form sort by issue

Posted on 2014-01-23
1
614 Views
Last Modified: 2014-01-23
I have a form that opens in datasheet view.  Some of the columns can be sorted because the "Sort By" property refers to those fields.

But 4 of the columns aren't "sortable" because they are DLookup fields.

How can I make them sortable like the others?

--Steve
0
Comment
Question by:SteveL13
1 Comment
 
LVL 35

Accepted Solution

by:
PatHartman earned 500 total points
ID: 39805049
Most DLookup()s can be replaced by joining to the lookup tables in your RecordSource query.  So, add the lookup tables and select the fields you are "looking up".  Make sure to set the Locked property of these controls to Yes to avoid accidental updates.  Once the column is in the query, you will be able to sort on it.  If the values might be null, use Left Joins so you won't lose "main" records.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
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…
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.
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…

805 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