A
Alexandre Saillant
Hello,
Got a little problem with a query. I have 2 tables that are linked.
The table one is used has a filter for a complex multiple table query
that start with table 2. basicaly I insert the value I want in table
1. and the table 2 will select the matching data. After that the
rest of the queries will work with only the right data. Here is a
sample to help you understand:
Table 1: (contains my categories)
Model Year
Sunfire 2004
Sunfire 2005
Cavalier 2004
Cavalier 2005
Table 2: (contains detailed data)
Model Vin Year Transmission Color etc.
Sunfire 1jb2d... 2004 Automatic blue ...
Sunfire 1jb3d... 2004 Automatic Red ...
Sunfire 1jb4d... 2005 Automatic blue ...
Sunfire 1jb5d... 2005 Automatic Green ...
Cavalier 1jb6d... 2004 Automatic blue ...
Cavalier 1jb7d... 2004 Automatic Silver ...
Cavalier 1jb8d... 2004 Automatic blue ...
In my join query I liked Model and Year between them. So if I select
Sunfier and 2004. I sould have a query that list only the sunfire of
2004.
THE PROBLEM is when I want 2004 AND 2005!!!
If i was writing the condition in the query I would simply write "2004
and 2005" in the CRITERIA section. However, because I MUST write the
criteria in the table 1 field, I dont know what to put. I wont take
"2004 and 2005" because it will look for that excat data in the year
field and will returne nothing. the "like 200*" will not work either!
Is there anything I can do for this?
Got a little problem with a query. I have 2 tables that are linked.
The table one is used has a filter for a complex multiple table query
that start with table 2. basicaly I insert the value I want in table
1. and the table 2 will select the matching data. After that the
rest of the queries will work with only the right data. Here is a
sample to help you understand:
Table 1: (contains my categories)
Model Year
Sunfire 2004
Sunfire 2005
Cavalier 2004
Cavalier 2005
Table 2: (contains detailed data)
Model Vin Year Transmission Color etc.
Sunfire 1jb2d... 2004 Automatic blue ...
Sunfire 1jb3d... 2004 Automatic Red ...
Sunfire 1jb4d... 2005 Automatic blue ...
Sunfire 1jb5d... 2005 Automatic Green ...
Cavalier 1jb6d... 2004 Automatic blue ...
Cavalier 1jb7d... 2004 Automatic Silver ...
Cavalier 1jb8d... 2004 Automatic blue ...
In my join query I liked Model and Year between them. So if I select
Sunfier and 2004. I sould have a query that list only the sunfire of
2004.
THE PROBLEM is when I want 2004 AND 2005!!!
If i was writing the condition in the query I would simply write "2004
and 2005" in the CRITERIA section. However, because I MUST write the
criteria in the table 1 field, I dont know what to put. I wont take
"2004 and 2005" because it will look for that excat data in the year
field and will returne nothing. the "like 200*" will not work either!
Is there anything I can do for this?