The middle box of the Expression Builder lists all the objects on a selected form or report.
I often find it hard to find things in the list as they seem to be in a completely random order.
Or is there some order there that I can't see? (They are certainly not in alpha order, nor the order in which they are added to the form, nor the Tab order)
Sort order in the Expression Builder
-
- 3StarLounger
- Posts: 287
- Joined: 09 Mar 2010, 23:16
- Location: Canberra Australia
Sort order in the Expression Builder
You do not have the required permissions to view the files attached to this post.
Regards
John
John
-
- Administrator
- Posts: 78466
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Sort order in the Expression Builder
I can't find out if there is any logic to the order in which the objects are listed either. As far as I know, there is no way to change this order.
Best wishes,
Hans
Hans
-
- 3StarLounger
- Posts: 287
- Joined: 09 Mar 2010, 23:16
- Location: Canberra Australia
-
- SilverLounger
- Posts: 2403
- Joined: 05 Feb 2010, 22:21
- Location: London ENGLAND
Re: Sort order in the Expression Builder
I assumed they are in the order of the "control order" on the form. That is, the order in which controls were added to the form or the Tab Order if this has been changed.
But I've never checked this. Andy.
But I've never checked this. Andy.
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
-
- Administrator
- Posts: 78466
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Sort order in the Expression Builder
It appears to be neither the tab order nor the order in which the controls were created, but a kind of mixture of these...
Best wishes,
Hans
Hans
-
- SilverLounger
- Posts: 2403
- Joined: 05 Feb 2010, 22:21
- Location: London ENGLAND
Re: Sort order in the Expression Builder
Maybe it's in a 'short-term' memory order
"There was a text box and, oh I remember now, a label,..."
"There was a text box and, oh I remember now, a label,..."
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
-
- 3StarLounger
- Posts: 287
- Joined: 09 Mar 2010, 23:16
- Location: Canberra Australia
Re: Sort order in the Expression Builder
I did a test where I added a control to a complex form. Most of the stuff already there is on the various pages of a tab control. So the new control was given a tab index of 2.That is, the order in which controls were added to the form or the Tab Order
In the expression builder the new control appeared down towards the bottom, but still some way from last.
Regards
John
John
-
- StarLounger
- Posts: 57
- Joined: 02 Sep 2011, 10:44
Re: Sort order in the Expression Builder
Yes, it happened just like that with me too. I was ready to swear it was the creation order that mattered, until I saw that happening .JohnH wrote:I did a test where I added a control to a complex form. Most of the stuff already there is on the various pages of a tab control. So the new control was given a tab index of 2.That is, the order in which controls were added to the form or the Tab Order
In the expression builder the new control appeared down towards the bottom, but still some way from last.
-
- 3StarLounger
- Posts: 287
- Joined: 09 Mar 2010, 23:16
- Location: Canberra Australia
Re: Sort order in the Expression Builder
I am not sure whether this helps much, but I have found that the order in the Expression Builder is the same as in the list produced by this routing.
Code: Select all
Public Sub sbListControls(frmForm As Form)
Dim ctrl As Control
For Each ctrl In frmForm.Controls
Debug.Print ctrl.Name
Next ctrl
Set ctrl = Nothing
End Sub
Regards
John
John