Subject | Re: [ib-support] problem updating correctly |
---|---|
Author | Nick Upson |
Post date | 2002-03-01T14:16:51Z |
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');
Send and receive Hotmail on your mobile device: http://mobile.msn.com
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