Records Returned in a Form Must Be Based on Key ID field on another form 
Author Message
 Records Returned in a Form Must Be Based on Key ID field on another form

Any way to design a form so that when it is opened it returns records
whose ID matches the same ID value that is active on another form?  (I
don't want to get into sub forms).

For example.  Say I have a form that lists Products - suppose "Product
X" is the active record.  Suppose as well I have a form that shows
Customer Orders.  With the Product form already open, when I open the
Customer Orders form, I want it such that only Customers who order
"Product X" are returned.



Thu, 17 Oct 2002 03:00:00 GMT  
 Records Returned in a Form Must Be Based on Key ID field on another form
Define a query to select all records from customer orders table where ID is
equal to Forms![products]![ID] and set this query as the record source of
customer orders form.

Shahram


Quote:
> Any way to design a form so that when it is opened it returns records
> whose ID matches the same ID value that is active on another form?  (I
> don't want to get into sub forms).

> For example.  Say I have a form that lists Products - suppose "Product
> X" is the active record.  Suppose as well I have a form that shows
> Customer Orders.  With the Product form already open, when I open the
> Customer Orders form, I want it such that only Customers who order
> "Product X" are returned.



Sat, 19 Oct 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Forms Returned in Form Based on Key ID field on another Form

2. Macro in Access:find record in new form based field in a diff open form

3. Fill in a field in a form based on the last record on another form

4. Base a Report on Records selected based on a field on a different form

5. choose input form based on type of record with continuing ID#

6. Can't Open form based on ID field

7. updating a field on a form based on another form field

8. Form based on query when query returns 0 records

9. form based criteria for a query - return all records if blank

10. Access 97 - Updating a field in form B based on a field in form A


 
Powered by phpBB® Forum Software © phpBB Group