Query by Type

ailyn

Registered User.
Local time
Today, 23:12
Joined
Sep 16, 2005
Messages
31
I have a table products
product id - autonum, key
ref - txt
serial - txt
typeId - num (gets type from types table)

and a table types
typeId - autonum, key
type - txt

I want a query to allow my form in a choicelist to pick one of the types and display all available products on that type.

I got :
SELECT types.TypeId, types.Type, products.Reference
FROM types, products
WHERE (((types.TypeId)=[products].[typeid]));

But it doesn't give me that result when I make the form based on that query.
 
You need to change the WHERE clause to point at the control on the form:
WHERE (((types.TypeId)=[Forms].[MyForm].[MyControl]));
 

Users who are viewing this thread

Back
Top Bottom