SQLScholar
Programmer
hey all,
I am quite a good SQL coder (in MS SQL) but i am struggling with a query in Access. I have this query.
However it seems not to like to join using a derived query (useful message of invalid procedure call)
I have tried doing this with a separate query to do the derived col - this doesnt help.
If however i do the same without a derived col (not what i need) it all works.
Unfortunately this is due to a non normalised DB that i cant change.
So.....
Anyone got any ideas?
Many thanks and TIA
Dan
----------------------------------------
Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind - Dr. Seuss
Computer Science is no more about computers than astronomy is about telescopes - EW Dijkstra
----------------------------------------
I am quite a good SQL coder (in MS SQL) but i am struggling with a query in Access. I have this query.
Code:
SELECT right(Task_Detail.Task_Employee_Initials,len(Task_Detail.Task_Employee_Initials)-5) AS Employee, Task_Detail.Task_Booking_Date, Task_Detail.Task_Number, Task_Detail.Task_Hours_Booked, Task_Detail.Task_Month, Task_Detail.Task_Year
FROM Task_Detail, itstaff
WHERE ((right(Task_Detail.Task_Employee_Initials,len(Task_Detail.Task_Employee_Initials)-5)=ITStaff!Name));
However it seems not to like to join using a derived query (useful message of invalid procedure call)
I have tried doing this with a separate query to do the derived col - this doesnt help.
If however i do the same without a derived col (not what i need) it all works.
Unfortunately this is due to a non normalised DB that i cant change.
So.....
Anyone got any ideas?
Many thanks and TIA
Dan
----------------------------------------
Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind - Dr. Seuss
Computer Science is no more about computers than astronomy is about telescopes - EW Dijkstra
----------------------------------------