I have the BOL...but I found it didn't answer my
questions.. for example, I never made the connection
between using Case in place of IIf. Would be nice if
there was a place that gave conversion options or
alternate commands for similar function.
I will continue to look there first of course..and, if
all else fails, at least I have a place to go. You've
been a great help to me on these problems (that have
plagued my for a week!). One more to go (watch out!)
Suzanne
[quoted text, click to view] >-----Original Message-----
>I assume you will only pass one transID:
>
>declare @pTransId varchar( 255 )
>set @pTransId = ???
>DELETE FROM tblApTransInvoiceTax
>WHERE tblApTransInvoiceTax.TransId=@pTransId
>--or create as proc
>
>create proc deleterow
>@ptransid varchar(255)
>as
>DELETE FROM tblApTransInvoiceTax
>WHERE tblApTransInvoiceTax.TransId=@pTransId
>
>exec deleterow 'pass your parameter'
>
>You might benefit from using BOL, I know I do :)
>
http://www.microsoft.com/downloads/details.aspx? FamilyID=a6f79cb1-a420-445f-8a4b-
bd77a7da194b&DisplayLang=en
[quoted text, click to view] >
>HTH
>
>--
>Ray Higdon MCSE, MCDBA, CCNA
>---
>"Suzanne" <flaminstar@aol.com> wrote in message
>news:14ead01c3f9bb$a4e97630$a601280a@phx.gbl...
>> Hi...This is another problem that is eluding me.
>> Suggestions on how this should be coded in Sql 2000? I
>> receive 'incorrect syntax' for 'text' on line 1
>> and 'tblApTransInvoiceTax' on line 4.
>>
>> PARAMETERS pTransId Text ( 255 );
>> DELETE DISTINCTROW tblApTransInvoiceTax.*,
>> tblApTransInvoiceTax.TransId
>> FROM tblApTransInvoiceTax
>> WHERE (((tblApTransInvoiceTax.TransId)=[pTransId]));
>>
>> This is new to me...learning as I go !
>>
>> Thanks for the help.
>
>
>.
I assume you will only pass one transID:
declare @pTransId varchar( 255 )
set @pTransId = ???
DELETE FROM tblApTransInvoiceTax
WHERE tblApTransInvoiceTax.TransId=@pTransId
--or create as proc
create proc deleterow
@ptransid varchar(255)
as
DELETE FROM tblApTransInvoiceTax
WHERE tblApTransInvoiceTax.TransId=@pTransId
exec deleterow 'pass your parameter'
You might benefit from using BOL, I know I do :)
http://www.microsoft.com/downloads/details.aspx?FamilyID=a6f79cb1-a420-445f-8a4b-bd77a7da194b&DisplayLang=en HTH
--
Ray Higdon MCSE, MCDBA, CCNA
---
[quoted text, click to view] "Suzanne" <flaminstar@aol.com> wrote in message
news:14ead01c3f9bb$a4e97630$a601280a@phx.gbl...
> Hi...This is another problem that is eluding me.
> Suggestions on how this should be coded in Sql 2000? I
> receive 'incorrect syntax' for 'text' on line 1
> and 'tblApTransInvoiceTax' on line 4.
>
> PARAMETERS pTransId Text ( 255 );
> DELETE DISTINCTROW tblApTransInvoiceTax.*,
> tblApTransInvoiceTax.TransId
> FROM tblApTransInvoiceTax
> WHERE (((tblApTransInvoiceTax.TransId)=[pTransId]));
>
> This is new to me...learning as I go !
>
> Thanks for the help.