G
Guest
Hi there
I've to thank people here in this discussion group for helping me out. However, now I've run into another problem and I would really appreciate if somebody coule help me out
In my table "tblData", I've the following data
Employee_I
Last_Nam
First_Nam
Departmen
Office_Cit
Now, I've made a query that searches for all the employees in a particular city ("Office_City"), i.e., Birmingham, Manchester, Paris, Brussels, Milan, Berlin, New York, LA etc....
This query is working very well for a particular city like NY, Paris etc.. However, now I want to run a query for all the employees (First_Name, Last_Name) working in Euro-zone, Europe, Americas, and globally. For Euro-zone, I want Paris, Brussels, Milan and Berlin; for Europe I want all the european cities and for America, NY and LA.
For this I created another table "tblCity" with the following format
Field Names: Global, Europe, Eurozone, America
After which the column contains the city names; e.g.
Eurozone (Field Name
Pari
Mila
Berli
Brussel
....
After doing this I made a query "qryCity" which displays the name of the American cities where the office is based (NY and LA)
Now this query is based on the table "tblCity" and returns the names of the two cities (NY and LA). I then made another query "qrySearch" based on the previous query "qryCity" and linking it with the original table "tbData"
=DLookUp("[Americas]","qryCity"
Thus this query takes the city names from the result of the query "qryCity" and then searches the employees names in the basic table "tblData"
This works really well, HOWEVER, it finds out the records of only the NY office!!!! and NOT the LA office!!
Actually, the result of "qryCity" i
N
L
And the query based on this (since it uses the DLOOKUP function) only finds the data for NY and not LA!!!
I want the second query to give me the employees list for BOTH NY and LA!! Can anybody PLEASE help me out here??
I shall be very grateful if somebody could help me out here
Regards
Mike
I've to thank people here in this discussion group for helping me out. However, now I've run into another problem and I would really appreciate if somebody coule help me out
In my table "tblData", I've the following data
Employee_I
Last_Nam
First_Nam
Departmen
Office_Cit
Now, I've made a query that searches for all the employees in a particular city ("Office_City"), i.e., Birmingham, Manchester, Paris, Brussels, Milan, Berlin, New York, LA etc....
This query is working very well for a particular city like NY, Paris etc.. However, now I want to run a query for all the employees (First_Name, Last_Name) working in Euro-zone, Europe, Americas, and globally. For Euro-zone, I want Paris, Brussels, Milan and Berlin; for Europe I want all the european cities and for America, NY and LA.
For this I created another table "tblCity" with the following format
Field Names: Global, Europe, Eurozone, America
After which the column contains the city names; e.g.
Eurozone (Field Name
Pari
Mila
Berli
Brussel
....
After doing this I made a query "qryCity" which displays the name of the American cities where the office is based (NY and LA)
Now this query is based on the table "tblCity" and returns the names of the two cities (NY and LA). I then made another query "qrySearch" based on the previous query "qryCity" and linking it with the original table "tbData"
=DLookUp("[Americas]","qryCity"
Thus this query takes the city names from the result of the query "qryCity" and then searches the employees names in the basic table "tblData"
This works really well, HOWEVER, it finds out the records of only the NY office!!!! and NOT the LA office!!
Actually, the result of "qryCity" i
N
L
And the query based on this (since it uses the DLOOKUP function) only finds the data for NY and not LA!!!
I want the second query to give me the employees list for BOTH NY and LA!! Can anybody PLEASE help me out here??
I shall be very grateful if somebody could help me out here
Regards
Mike