Re: Requery subform
- From: "Kurt" <kheisler6@xxxxxxx>
- Date: 4 Jul 2006 15:42:06 -0700
This is an embedded subform right?
Yes.
Not one opened separately?
Correct.
If embedded are you using the MasterLink and ChildLink properties
to display the related records or does the subform's RecordSource
reference the ProjectType on the main form in its query criteria?
I'm not using the MasterLink and ChildLink properties. Instead, when
the user selects the search criteria (up to three criteria can be
selected using 3 combo boxes, one of which is ProjectType), the code
under the command button:
1) creates a query (called qryProjectList) (only does this if the query
doesn't exist),
2) gets the values from the combo boxes,
3) builds a SQL string,
4) passes the string to the query, and
5) requries the subform, which is based on this query.
Every step by the last one is working.
Rick Brandt wrote:
"Kurt" <kheisler6@xxxxxxx> wrote in message
news:1152051810.572789.156180@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
How do you know the subform is not being Requeried?
For example, if I select "Manuscript" for the ProjectType, and click
the command button, the subform should update to list only those
records for which "Manuscript" is the ProjectType.
But the subform doesn't update/requery to show the results of this
search.
(It still shows the results of the last search.) Of course, if I close
and reopen the form, the subform will properly show only manuscripts.
This tells me that the code which creates the query which the subform
is based on is working.
I'm completely stumped.
This is an embedded subform right? Not one opened separately? If embedded are
you using the MasterLink and ChildLink properties to display the related records
or does the subform's RecordSource reference the ProjectType on the main form in
its query criteria?
--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
.
- Follow-Ups:
- Re: Requery subform
- From: Rick Brandt
- Re: Requery subform
- References:
- Requery subform
- From: Kurt
- Re: Requery subform
- From: Linda Burnside
- Re: Requery subform
- From: Kurt
- Re: Requery subform
- From: Kurt
- Re: Requery subform
- From: Rick Brandt
- Re: Requery subform
- From: Kurt
- Re: Requery subform
- From: Rick Brandt
- Re: Requery subform
- From: Kurt
- Re: Requery subform
- From: Rick Brandt
- Re: Requery subform
- From: Kurt
- Re: Requery subform
- From: Rick Brandt
- Requery subform
- Prev by Date: Calling up cost prices
- Next by Date: Can I change a Label in a form on the fly?
- Previous by thread: Re: Requery subform
- Next by thread: Re: Requery subform
- Index(es):
Relevant Pages
|