Re: list box from query
From: andrew (anonymous_at_discussions.microsoft.com)
Date: 08/19/04
- Next message: Jim Allensworth: "Re: Locking form fields"
- Previous message: AHopper: "Store Part of Entry"
- In reply to: Sandra Daigle: "Re: list box from query"
- Next in thread: Sandra Daigle: "Re: list box from query"
- Reply: Sandra Daigle: "Re: list box from query"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 19 Aug 2004 12:56:17 -0700
Thanks again!
If this helps, I have three nested forms (say, the parent,
child, and grandchild) The listbox is in the grandchild
form, and is based on a value in the child form.
If I open the form from the parent level, it will ask for
me to enter the query value.
If I open the form from the child level, it will update
the grandchild form without a prompt. But it also will
not update the query as I switch to a different record
value on the child field.
The help is appreciated! Thanks for the time.
Andrew
>-----Original Message-----
>If your reference in the query is correct it shouldn't be
prompting you for
>a value. Make sure that what you put in the query matches
the name of the
>control that has the test value. Select the control and
double check the
>name property (under the 'Other' tab).
>
>--
>Sandra Daigle [Microsoft Access MVP]
>Please post all replies to the newsgroup.
>
>
>andrew wrote:
>> Thanks so much for the help! One thing...when I open
the
>> form, it demands that I manually enter a value. How do
I
>> get it to look at the value on the parent form?
>>
>> Thanks again!
>> Andrew
>>
>>> -----Original Message-----
>>> Just reference the form control directly in the
query.. In the query
>>> designer put the following in the criteria field of
the appropriate
>>> column:
>>>
>>> forms!MyForm!MyControl
>>>
>>> Replace 'MyForm' with the name of the form that has
the filtering
>>> value and replace 'MyControl' with the control name.
>>>
>>> You may need to requery the listbox using the
AfterUpdate event of
>>> the Control that filters the listbox.
>>>
>>> --
>>> Sandra Daigle [Microsoft Access MVP]
>>> Please post all replies to the newsgroup.
>>>
>>>
>>> andrew wrote:
>>>> Hello all!
>>>> I have a list box (in a subform) that I want to
populate
>>>> from a query. I need to "send" to the query a value
from
>>>> the parent form.
>>>>
>>>> I created the query in design view, where it works
when I
>>>> manually "hard code" the determing value. How do I
get my
>>>> form to send different values to the query?
>>>>
>>>> Thanks!
>>>> Andrew
>>>
>>>
>>> .
>
>
>.
>
- Next message: Jim Allensworth: "Re: Locking form fields"
- Previous message: AHopper: "Store Part of Entry"
- In reply to: Sandra Daigle: "Re: list box from query"
- Next in thread: Sandra Daigle: "Re: list box from query"
- Reply: Sandra Daigle: "Re: list box from query"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|