We help IT Professionals succeed at work.
Get Started

Sort on dlookup field in form

codequest
codequest asked
on
1,125 Views
Last Modified: 2012-06-27
I've got a form with a field populated by a dlookup.  There's an underlying field in the related table, but I'm not using that (I could).

Right click on the field does not show sort ascending, sort descending, select etc.  Ok, I kinda get it, it's a dlookup, so it's not simple to figure out how to do the sort.

1)  Will I run into the same restriction if I attempt to do an "OrderBy" on the field in vba?

2)  I assume that if instead of filling the form field with Dlookup I insert into the underlying table using sql, and then requery the form (which I have to do anyway, when the source field - in another form - changes), the sort should work?

Thanks!

Comment
Watch Question
Database Architect / Application Developer
CERTIFIED EXPERT
Top Expert 2007
Commented:
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE