PC Review


Reply
Thread Tools Rate Thread

Delete all records with field=d

 
 
Ted Ljong
Guest
Posts: n/a
 
      26th Oct 2003
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


 
Reply With Quote
 
 
 
 
Thomas A. Rowe
Guest
Posts: n/a
 
      26th Oct 2003
Try:

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

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"Ted Ljong" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Ted Ljong
Guest
Posts: n/a
 
      26th Oct 2003
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


"Thomas A. Rowe" <(E-Mail Removed)> skrev i meddelandet
news:u$(E-Mail Removed)...
> Try:
>
> SQL = "Delete * from tablename Where status = 'd' "
>
> --
>
> ==============================================
> Thomas A. Rowe (Microsoft MVP - FrontPage)
> WEBMASTER Resources(tm)
> http://www.ycoln-resources.com
> FrontPage Resources, Forums, WebCircle,
> MS KB Quick Links, etc.
> ==============================================
> To assist you in getting the best answers for FrontPage support see:
> http://www.net-sites.com/sitebuilder/newsgroups.asp
>
> "Ted Ljong" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > 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
> >
> >

>
>



 
Reply With Quote
 
Ted Ljong
Guest
Posts: n/a
 
      26th Oct 2003
Forget my answer it was a reading problem, I did not modifie the querie it
is used as you said.
Ted Ljong


"Ted Ljong" <(E-Mail Removed)> skrev i meddelandet
news:e6bh7G%(E-Mail Removed)...
> 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
>
>
> "Thomas A. Rowe" <(E-Mail Removed)> skrev i meddelandet
> news:u$(E-Mail Removed)...
> > Try:
> >
> > SQL = "Delete * from tablename Where status = 'd' "
> >
> > --
> >
> > ==============================================
> > Thomas A. Rowe (Microsoft MVP - FrontPage)
> > WEBMASTER Resources(tm)
> > http://www.ycoln-resources.com
> > FrontPage Resources, Forums, WebCircle,
> > MS KB Quick Links, etc.
> > ==============================================
> > To assist you in getting the best answers for FrontPage support see:
> > http://www.net-sites.com/sitebuilder/newsgroups.asp
> >
> > "Ted Ljong" <(E-Mail Removed)> wrote in message
> > news:%(E-Mail Removed)...
> > > 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
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Bob Lehmann
Guest
Posts: n/a
 
      26th Oct 2003
The * is uneccesary.

Bob Lehmann

"Thomas A. Rowe" <(E-Mail Removed)> wrote in message
news:u$(E-Mail Removed)...
> Try:
>
> SQL = "Delete * from tablename Where status = 'd' "
>
> --
>
> ==============================================
> Thomas A. Rowe (Microsoft MVP - FrontPage)
> WEBMASTER Resources(tm)
> http://www.ycoln-resources.com
> FrontPage Resources, Forums, WebCircle,
> MS KB Quick Links, etc.
> ==============================================
> To assist you in getting the best answers for FrontPage support see:
> http://www.net-sites.com/sitebuilder/newsgroups.asp
>
> "Ted Ljong" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > 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
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Delete records in subform if one field is Null John W. Vinson Microsoft Access Getting Started 4 13th Jun 2009 06:56 PM
RE: Delete records in subform if one field is Null NG Microsoft Access Getting Started 0 12th Jun 2009 05:01 PM
Delete duplicates records without data in field name =?Utf-8?B?YW4=?= Microsoft Access Queries 5 16th Nov 2007 02:40 PM
Delete Records according to One Criteria in one Field Roger The Rabbit Microsoft Excel Programming 1 3rd Sep 2006 08:00 PM
Delete all records matching a field except for one based on an includeddate field naniboujou Microsoft Access Queries 3 13th Dec 2003 03:31 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:55 PM.