Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Datasheet view form sort by issue

Posted on 2014-01-23
1
Medium Priority
?
630 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
[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
1 Comment
 
LVL 39

Accepted Solution

by:
PatHartman earned 2000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

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.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

609 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