PC Review


Reply
Thread Tools Rate Thread

DB update - delete error (SP3 problem?)

 
 
Mettá
Guest
Posts: n/a
 
      21st Apr 2004
Following numerous ongoing problems, (possibly caused after installing MS
SP3) with custom DRWs I now have another problem with a simple DRW access db
record update or delete.

Is "DISTINCT" no longer available or something???

DELETE DISTINCT from TableName WHERE Id=::Id:: and FirstName='::FirstName::'




Page 1 posts the Unique ID and First Name as a kind of safety net. The
following error results...

Database Results Error
The operation failed. If this continues, please contact your server
administrator

Any ideas folks....

M


 
Reply With Quote
 
 
 
 
Thomas A. Rowe
Guest
Posts: n/a
 
      21st Apr 2004
To use Distinct your would have to supply a field name, as in Distinct(fieldname), however for
deleting a record, as long as table had a ID (autonumber) field, then you can just use that.

Delete * from table where ID = " & ID

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, 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

"Mettá" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Following numerous ongoing problems, (possibly caused after installing MS
> SP3) with custom DRWs I now have another problem with a simple DRW access db
> record update or delete.
>
> Is "DISTINCT" no longer available or something???
>
> DELETE DISTINCT from TableName WHERE Id=::Id:: and FirstName='::FirstName::'
>
>
>
>
> Page 1 posts the Unique ID and First Name as a kind of safety net. The
> following error results...
>
> Database Results Error
> The operation failed. If this continues, please contact your server
> administrator
>
> Any ideas folks....
>
> M
>
>



 
Reply With Quote
 
Mettá
Guest
Posts: n/a
 
      21st Apr 2004
Hi Thomas

I have revised the delete query as

DELETE * from TableName WHERE Id=::Id:: and FirstName='::FirstName::'

I am still getting the same error??

Thanks
M


"Thomas A. Rowe" <(E-Mail Removed)> wrote in message
news:OQIkd%(E-Mail Removed)...
> To use Distinct your would have to supply a field name, as in

Distinct(fieldname), however for
> deleting a record, as long as table had a ID (autonumber) field, then you

can just use that.
>
> Delete * from table where ID = " & ID
>
> --
> ==============================================
> Thomas A. Rowe (Microsoft MVP - FrontPage)
> WEBMASTER Resources(tm)
> http://www.ycoln-resources.com
> FrontPage Resources, 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
>
> "Mettá" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Following numerous ongoing problems, (possibly caused after installing

MS
> > SP3) with custom DRWs I now have another problem with a simple DRW

access db
> > record update or delete.
> >
> > Is "DISTINCT" no longer available or something???
> >
> > DELETE DISTINCT from TableName WHERE Id=::Id:: and

FirstName='::FirstName::'
> >
> >
> >
> >
> > Page 1 posts the Unique ID and First Name as a kind of safety net. The
> > following error results...
> >
> > Database Results Error
> > The operation failed. If this continues, please contact your server
> > administrator
> >
> > Any ideas folks....
> >
> > M
> >
> >

>
>



 
Reply With Quote
 
Thomas A. Rowe
Guest
Posts: n/a
 
      21st Apr 2004
What happen when you just use:

"DELETE * from TableName WHERE Id= " ::Id::
--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, 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

"Mettá" <(E-Mail Removed)> wrote in message
news:uCtA7d%(E-Mail Removed)...
> Hi Thomas
>
> I have revised the delete query as
>
> DELETE * from TableName WHERE Id=::Id:: and FirstName='::FirstName::'
>
> I am still getting the same error??
>
> Thanks
> M
>
>
> "Thomas A. Rowe" <(E-Mail Removed)> wrote in message
> news:OQIkd%(E-Mail Removed)...
> > To use Distinct your would have to supply a field name, as in

> Distinct(fieldname), however for
> > deleting a record, as long as table had a ID (autonumber) field, then you

> can just use that.
> >
> > Delete * from table where ID = " & ID
> >
> > --
> > ==============================================
> > Thomas A. Rowe (Microsoft MVP - FrontPage)
> > WEBMASTER Resources(tm)
> > http://www.ycoln-resources.com
> > FrontPage Resources, 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
> >
> > "Mettá" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > Following numerous ongoing problems, (possibly caused after installing

> MS
> > > SP3) with custom DRWs I now have another problem with a simple DRW

> access db
> > > record update or delete.
> > >
> > > Is "DISTINCT" no longer available or something???
> > >
> > > DELETE DISTINCT from TableName WHERE Id=::Id:: and

> FirstName='::FirstName::'
> > >
> > >
> > >
> > >
> > > Page 1 posts the Unique ID and First Name as a kind of safety net. The
> > > following error results...
> > >
> > > Database Results Error
> > > The operation failed. If this continues, please contact your server
> > > administrator
> > >
> > > Any ideas folks....
> > >
> > > M
> > >
> > >

> >
> >

>
>



 
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
Problem with update and delete Florin Microsoft Access 3 24th Mar 2009 08:01 AM
RE: Retreive, Update, Delete problem.... =?Utf-8?B?RGFuaWVs?= Microsoft ASP .NET 0 29th Aug 2005 01:19 PM
Edit, Update, Delete DataGrid Problem jinhy82 Microsoft ASP .NET 0 6th Jun 2005 11:38 AM
Edit, Delete, Update ... Error :-( Stephen Microsoft Access Form Coding 1 1st Jul 2004 05:28 PM
RTrim and UPDATE, DELETE problem lado Microsoft ADO .NET 1 30th Oct 2003 03:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:01 AM.