Subject Re: [ib-support] problem updating correctly
Author Nick Upson
I can't solve your larger problem but I can (I think) fix this.
the problem is that you have delitems in 2 places, change to this:

Update Delitems
Set Inv_Nmbr=(Select InvHead.Inv_Nmbr From InvHead
Inner Join DelItems DI on DI.Acno=InvHead.Acno
Where DI.Delivered='N'
And InvHead.Delivered='N');


>Dynamic SQL Error
>SQL error code = -204
>Ambiguous field name between table/view DELITEMS and table/view DELITEMS
>ACNO
>
> Update Delitems
> Set DelItems.Inv_Nmbr=(Select InvHead.Inv_Nmbr From InvHead
> Inner Join DelItems on DelItems.Acno=InvHead.Acno
> Where DelItems.Delivered='N'
> And InvHead.Delivered='N');


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com