Re: Using parameters in code?
From: Marshall Barton (marshbarton_at_wowway.com)
Date: 08/26/04
- Next message: Allen Browne: "Re: Using parameters in code?"
- Previous message: Allen Browne: "Re: filtering reports"
- In reply to: Shane: "Using parameters in code?"
- Next in thread: Allen Browne: "Re: Using parameters in code?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 25 Aug 2004 22:30:01 -0500
Shane wrote:
>how do you pass the results from one recordset to be used
>for parameters for another recordset
>
>This is what I want to do.
>
>I have a list box that shows parts on order.
>
>When i click the part I want it to find all the purchase
>orders that have that PO/Part relationship (One-many)
>using a sql statement.
>my result from that query would be example:
>PO_IDS
>426
>538
>567
>
>I want to use those Id's as parameters for another sql
>statement so I can view those purchase orders. Would this
>be an array or a loop of some sort?
Not sure I followed that. You say recordset in one place,
but later you talk about a query.
I can't be sure, but it sounds like you might be able to use
a single query:
SELECT PO_ID, . . .
FROM potable INNER JOIN partslist
ON potable.PO_ID = partslist.PO_ID
WHERE partslist.partnnumber = FORMS!theform.thelistbox
If I've missed the boat, please post back with more details
about the tables and their fields.
-- Marsh MVP [MS Access]
- Next message: Allen Browne: "Re: Using parameters in code?"
- Previous message: Allen Browne: "Re: filtering reports"
- In reply to: Shane: "Using parameters in code?"
- Next in thread: Allen Browne: "Re: Using parameters in code?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|