Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Append Query Not working - Duplicate Output Destination error

Status
Not open for further replies.
Feb 2, 2005
54
US
I have kind of a strang Append Query and it isn't working. I have a field in a table that needs to be updated by potentially 10 different fields in another source. For example 'Shelf' needs to be updated by 'Shelf0' or 'Shelf1' or 'Shelf2'...'Shelf9' depending on which has data.

Here's the code that is breaking:

Code:
IIf(IsNull(existing_items!BinX0),new_remstar_items_list!Shelf,"RXA" & existing_items!BinX0) AS Expr1,
IIf(IsNull(Existing_Items!BinX1),new_remstar_items_list!Shelf,"RXA" & Existing_Items!BinX1) AS Expr2,

The beginning of the SQL statement references Shelf, Shelf,...up to 10 Shelf's as well.

Is there a way around this?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top