Hello,
I am running the following query and keep getting Invalid procedure Call Error. I looked up the error but it seems to be related to packaging a database with Linked tables. But I am not packaging the database or using the package and deployment wizard, I do have a linked table but I have not using that in the query I am trying to run.
Here is the query
SELECT A.[Name], A.[Group], Sum (A.[price] ) AS [Total Price], Sum(B.[budget]) AS [Total Budge], B.account
FROM FEE_TBL AS B INNER JOIN BUDGET_TBL AS A
ON mid(UCASE(B.[name]),(instr(B.[name],'-')+1),(instr(B.[name],',')-(instr(B.[name],'-')+1)))=left(UCASE(A.[name]), instr(A.[name],','))
GROUP BY A.[Name], A.[Group], B.[account];
I am trying to match the name fields based on last name. However in table A: the name field is in format 'lastname, firstname' and in table B, the name field is in format '9-digit # - lastname,firstname'.
Thanks for suggestions!
Any ideas?
I am running the following query and keep getting Invalid procedure Call Error. I looked up the error but it seems to be related to packaging a database with Linked tables. But I am not packaging the database or using the package and deployment wizard, I do have a linked table but I have not using that in the query I am trying to run.
Here is the query
SELECT A.[Name], A.[Group], Sum (A.[price] ) AS [Total Price], Sum(B.[budget]) AS [Total Budge], B.account
FROM FEE_TBL AS B INNER JOIN BUDGET_TBL AS A
ON mid(UCASE(B.[name]),(instr(B.[name],'-')+1),(instr(B.[name],',')-(instr(B.[name],'-')+1)))=left(UCASE(A.[name]), instr(A.[name],','))
GROUP BY A.[Name], A.[Group], B.[account];
I am trying to match the name fields based on last name. However in table A: the name field is in format 'lastname, firstname' and in table B, the name field is in format '9-digit # - lastname,firstname'.
Thanks for suggestions!
Any ideas?