I have a form with a sub-form table, displaying 2 columns from a SQL query:
“SELECT “Type_Name”, “ID” FROM “Types” ORDER BY “Type_Name” ASC”
The display is ignoring the ORDER BY directive. The records are being displayed in the record order of entry. I’ve tried leaving off the “ASC” with no change in the results.
Thank you in advance!
Edit - new information:
When I enter new items in the main form, the sub-form list is displaying sorted inside the list box. When the sub-form is displaying previously entered items, the list is not sorted and I need it to be. Is there a way to make this happen?
Edit 2:
Example File Upload
The sub-form is used in the ItemsMaint form. Record numbers 1 through 119 (as displayed in the “Item ID” column of the sub-form) were manually entered in the “rel_Item_Type” table. Record numbers 120 through 158 were entered through the ItemsMaint form with sub-form. All but a couple of the records in the 120-158 range display in reverse order of the way I entered them in the sub-form.
Please let me know if you have more questions.
Thank you again!