Sort not holding in form combined field

Tina49

Registered User.
Local time
Today, 15:13
Joined
Sep 29, 2011
Messages
34
I have a field on a form called ChemID. This field is made up of two fields, ChemID and ChemName. Only ChemName is displayed. I have a query assoicated with the form that sorts by ChemName; however, the form always displays the original sort of ChemID. Any help would be appreciated. Here is the query

SELECT Chemicals.ChemID, Chemicals.ChemName FROM Chemicals
UNION
SELECT Chemicals.ChemID, Chemicals.AltName1 FROM Chemicals WHERE Chemicals.AltName1 IS NOT NULL
UNION SELECT Chemicals.ChemID, Chemicals.AltName2 FROM Chemicals WHERE Chemicals.AltName2 IS NOT NULL
ORDER BY Chemicals.ChemName;
 
Check the form properties. It may have an OrderBy and OrderByOnLoad applied there.
 
Yes, I had already set that, but it does not seem to make a difference.
 
Does it show the right sort order when run as a query?

Are you opening the form in Datasheet or Continuous View?
 
Yes, the query runs just fine. Running in form view.
 

Users who are viewing this thread

Back
Top Bottom