473,473 Members | 4,297 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How can I sort records in a sub-subform?

9 New Member
Hi I need to sort the records in a subform that is part of another subform. How will I go around that. I'm not an expert so please be patient with me.
Dec 21 '14 #1
7 1515
twinnyfo
3,653 Recognized Expert Moderator Specialist
It depends upon where you are calling for the sort....

The basics should still apply:

Expand|Select|Wrap|Line Numbers
  1. With Forms!FormName
  2.     .OrderBy = "enter your order Criteria here"
  3.     .OrderByOn = True
  4. End With
But syntax will change slightly with nested forms and depending upon where you are calling it from.
Dec 22 '14 #2
twinnyfo
3,653 Recognized Expert Moderator Specialist
It depends upon where you are calling for the sort....

The basics should still apply:

Expand|Select|Wrap|Line Numbers
  1. With Forms!FormName
  2.     .OrderBy = "enter your order Criteria here"
  3.     .OrderByOn = True
  4. End With
But syntax will change slightly with nested forms and depending upon where you are calling it from.
Dec 22 '14 #3
sroeder
9 New Member
Hello thank you very much for your response. The form is as follows. Suppose you have a restaurant with different dishes for lunch and supper. So you would have a form where you, among other things, would choose between lunch and dinner. In a subform you would have a combo box that shows you the dishes for lunch or dinner depending on what you chose on the form. So this list will actualize the available dishes every time you change for lunch or for dinner. This is not what I need to do but it is similar...
Thank you very much in advance....
Dec 23 '14 #4
twinnyfo
3,653 Recognized Expert Moderator Specialist
sroeder,

I'm not sure what your last post has to do with sorting a subform. Are you trying to "sort" (e.g. put things in alphabetical order) or "filter" (e.g. list all the lunch items, based on the combo box selection on the form and then list all dinner items when the combo box is changed)?

To me, it sounds like the latter....
Dec 24 '14 #5
sroeder
9 New Member
I am trying to sort, in my actual case, by date. I'm sorry the example I gave was not explicit enough...
Dec 24 '14 #6
twinnyfo
3,653 Recognized Expert Moderator Specialist
Post #2 should still apply.
Dec 29 '14 #7
sroeder
9 New Member
Thank you Twinnyfo I will try it tomorrow
Dec 30 '14 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Phil Powell | last post by:
Very simplistic but I am utterly STUMPED at this one. I have a db table "person" that I can sort by title, first_name, last_name, or city with no problems at all because "title", "first_name",...
3
by: Lad | last post by:
What is the best( easiest)way how to sort a file? I have a file where each record consists of 3 fields( 3 words) and I would like to sort records by the first field( word)in each record. Any idea?...
12
by: MLH | last post by:
I have created two forms: frmBrowseNegsMainform and frmBrowseNegsSubform. I put a subform control on the first of these. The SourceObject property for the subform control is, of course,...
22
by: Nhmiller | last post by:
Is there a way to do this? Thanks. Neil Cat Paintings At Carol Wilson Gallery http://www.carolwilsongallery.com
3
by: srikanth | last post by:
please give me any helpful logics for the subject
3
by: usaccess | last post by:
Hi, I have a form/subform. There is a priority field and then a case status field. I want to display records so that it sorts by case status as "actives" then "on holds" then "completes" and...
3
by: sail87 | last post by:
I inherited an Access 2003 database and need to change the way a form is sorted. It seems to work like this. There is a table containing work records of work requests. The user fills out a form...
20
nicebasic
by: nicebasic | last post by:
I would like to have a query for ASP Classic to be applied on an Access database. 1. Imagine that we have a table with the name of "Country". 2. Imagine that we have a column in "Country" that...
4
by: Mihail | last post by:
Hello ! I have 2 tables: tblParents: ID_Parent (autonumber) ParentName (Text) tblChilds: ID_Child (autonumber) ID_Parent (Look Up field on tblParents)
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.