bluedollar
Programmer
----------------------------------------------------------------------
I have the following tables
SITE_COMM
site_comm_num
quote_num
date_done
done_staff_num (linked to STAFF on staff_num)
type_num
completed_date
completed_staff_num (linked to STAFF on staff_num)
client
supplier_num
STAFF
staff_num
name
----------------------------------------------------------------------
What I am trying to do?
I am trying to list all site_comm records that have the same quote num (this I can do fine). However I am also trying to list the name of the staff member as apposed to their number. eg.
staff.name instead of site_comm.done_staff_num
staff.name instead of site_comm.completed_staff_num
--------------------------------------------------------------------
Problem
To do this I am using the staff table name field with the following criteria:
[site_comm]![done_staff_num] = [staff]![staff_num]
This works fine for one name, however I need to find the names for both done_staff_num and completed_staff_num, when I use the following:
[site_comm]![done_staff_num] = [staff]![staff_num]
[site_comm]![completed_staff_num] = [staff]![staff_num]
The query only lists site_comm records where both done_staff_num and completed_staff_num have the same staff number. However a lot of records in the table have different staff numbers for the done and completed_staff_num fields.
--------------------------------------------------------------------
Any help would be greatly appreciated.
Thanks
Dan
I have the following tables
SITE_COMM
site_comm_num
quote_num
date_done
done_staff_num (linked to STAFF on staff_num)
type_num
completed_date
completed_staff_num (linked to STAFF on staff_num)
client
supplier_num
STAFF
staff_num
name
----------------------------------------------------------------------
What I am trying to do?
I am trying to list all site_comm records that have the same quote num (this I can do fine). However I am also trying to list the name of the staff member as apposed to their number. eg.
staff.name instead of site_comm.done_staff_num
staff.name instead of site_comm.completed_staff_num
--------------------------------------------------------------------
Problem
To do this I am using the staff table name field with the following criteria:
[site_comm]![done_staff_num] = [staff]![staff_num]
This works fine for one name, however I need to find the names for both done_staff_num and completed_staff_num, when I use the following:
[site_comm]![done_staff_num] = [staff]![staff_num]
[site_comm]![completed_staff_num] = [staff]![staff_num]
The query only lists site_comm records where both done_staff_num and completed_staff_num have the same staff number. However a lot of records in the table have different staff numbers for the done and completed_staff_num fields.
--------------------------------------------------------------------
Any help would be greatly appreciated.
Thanks
Dan