Link to home
Start Free TrialLog in
Avatar of Juan Velasquez
Juan VelasquezFlag for United States of America

asked on

Keep getting "Ambiguous name in query expresion" error

Hello,
I keep getting the error "Ambiguous name in query expresion. 'Swap([Diamond]'. When I try to execute the following query.  It's telling me that there is a mispelling or something of that nature.  What am I missing?

UPDATE STAGE_INST_HDR SET STAGE_INST_HDR.ALIAS = Swap([Diamond Id])
WHERE ((Not (STAGE_INST_HDR.[Diamond Id]) Is Null));
ASKER CERTIFIED SOLUTION
Avatar of Sean Stuber
Sean Stuber

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Juan Velasquez

ASKER

I found the solution.  There were two functions with the same name.  I removed one and it works
I've requested that this question be closed as follows:

Accepted answer: 0 points for chtullu135's comment http:/Q_27420757.html#37047839

for the following reason:

I found the problem on my own.  I discovered that there were two functions with the identical name.  When I removed one of them, the query works
Avatar of Sean Stuber
Sean Stuber

>>>> two functions with the same name

isn't that what was originally suggested?
sdstuber suggested exactly that in their first comment: "Do you have multiple objects named Diamond ID". As such, I've accepted that comment as the solution.

SouthMod
Community Support Moderator
I had multiple objects named Swap not diamond id but I get your point.
I've accepted sdtubers suggestion