Re: Sorting subforms
- From: "Jeff Boyce" <nonsense@xxxxxxxxxxxx>
- Date: Wed, 29 Mar 2006 07:55:41 -0800
Chris
Go to the form you are using as the sub(?sub)form. Open it in design mode.
Take a look at what you're using as a source. If it isn't a query, based on
the underlying table, make it a query, based on the underlying table. Sort
the query.
Your sub(?sub)form should now show (sorted) data.
Regards
Jeff Boyce
Microsoft Office/Access MVP
"ChrisK" <chris@xxxxxxxxxxxxxxxxxxx> wrote in message
news:6LxWf.13310$Ph2.7351@xxxxxxxxxxxxxxxxxxxxxxx
I am a complete beginner at using Access and have been setting up a
database
for keeping details of customers, machines and jobs. I have managed to get
it looking something like I want but have now got stuck so hope someone
can
help me.
I have a main form contaning customer contact details. In this is a
subform
with machines which the customer has on site and within that is another
subform (in continuous form view) where I enter details of jobs carried
out
on each machine. This works well in that when I select a customer I see
only
the machines which that particular customer has and selecting a machine
then
shows me jobs recently carried out as well as letting me enter a new job.
However I can't get this sorted by date and it seems to be quire random in
order.
If I set the property of subform to Order By date then when main form is
opened I get error saying "You must use the same number of fields when you
set the LinkChildFields and LinkMasterFields properties".
If, instead of having the Record Source as the related table, I use the
Query Bbuilder to select and sort by date field, I get listed in the
subform
all jobs not just those related to the selected customer and machine.
I hope that I have made it clear what I am trying to do and would
appreciate
any help or advice.
ChrisK
.
- Follow-Ups:
- Re: Sorting subforms
- From: ChrisK
- Re: Sorting subforms
- References:
- Sorting subforms
- From: ChrisK
- Sorting subforms
- Prev by Date: Re: Remembering Form Window Sizes
- Next by Date: RE: textbox and combobox
- Previous by thread: Sorting subforms
- Next by thread: Re: Sorting subforms
- Index(es):
Relevant Pages
|