Delete all records with field=d

T

Ted Ljong

Hi
From a FPpage I will delete every records with field status=d. It´s no
problem to delete 1 record but when I try to delete several records I get
errormessage "To few parameters. Expected 1."
Ted Ljong
 
T

Thomas A. Rowe

Try:

SQL = "Delete * from tablename Where status = 'd' "

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
T

Ted Ljong

Thanks Thomas
It´s an access db so I modified the querie to
delete * FROM epost_send WHERE status = 'd'
It works fine now, thanks
Ted Ljong
 
T

Ted Ljong

Forget my answer it was a reading problem, I did not modifie the querie it
is used as you said.
Ted Ljong
 
B

Bob Lehmann

The * is uneccesary.

Bob Lehmann

Thomas A. Rowe said:
Try:

SQL = "Delete * from tablename Where status = 'd' "

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top