16822 How can one delete records
Sign Up |  Live StatsLive Stats    Articles 37,464| Comments 178,570| Members 19,492, Newest sikh15| Online 447
Home Contact
 (Forgotten?): 
    10 years of Excellence
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Click Here to Register/Sign Up Daily Hukamnama Member Blogs Downloads Website Navigation Help Fonts Tags

How can one delete records

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 0 USD (0%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
Delete records from multiple tables jk Information Technology 2 28-Jul-2006 08:35 AM
Delete all records in a table j Information Technology 4 28-Jul-2006 08:25 AM
delete records Tom Information Technology 12 28-Jul-2006 08:02 AM
URGENT: error 3075 while trying to delete records Broadway Information Technology 8 10-Nov-2005 21:09 PM
How do I archive records but not delete them? Tyneka Information Technology 2 29-Oct-2005 12:35 PM


Tags
delete, records
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:36 AM
Wayne & Kerri Anne's Avatar Wayne & Kerri Anne
Guest
 
Posts: n/a
   
   
How can one delete records

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
Hi All

Can anyone give me a sample of deleting all but the first record in access97
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/13353-how-can-one-delete-records.html
as I need to use a query to do this.


Thanks
Wayne



*







Got anything to share on This Topic? Why not share your immediate thoughts/reaction with us! Login Now! or Sign Up Today! to share your views... Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:36 AM
Steve Schapel's Avatar Steve Schapel
Guest
 
Posts: n/a
   
   
Re: How can one delete records

Wayne,

Yes, you should be able to use a Delete Query for this purpose. The
specifics will depend on how you identify "the first record" - can you
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13353
give some more details about the data in this table, and an example of
the single record you wish to retain?
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13353

--
Steve Schapel, Microsoft Access MVP

Wayne & Kerri Anne wrote:
> Can anyone give me a sample of deleting all but the first record in access97
> as I need to use a query to do this.
>

Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:36 AM
Wayne & Kerri Anne's Avatar Wayne & Kerri Anne
Guest
 
Posts: n/a
   
   
Re: How can one delete records

Steve
Bit of background on this database is. I wrote the first version in access97
with all the forms reports. Now I have written this program in VB6 using the
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13353
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13353
same db.
I have a Autonumber field which is a random number. linking this to the
second table. Fisrt table holds info of an Address Decription of work
required time frames and so on. the second table holds info of items to do
at the job location and so on.
FIRST TABLE
AutoNumber12354309,InspectionBy,InspectionDate,Ell ipseCode,Street,Suburb,Limit
To,Limit From,Description and so on
SECOND TABLE
ID number copy of the
autonmber,workordertype,UseStatus,ITSNumber,Qty,pr ojectNumber,Schedule
startdate,Schedule Endate and so on.

I am would like to run a delete query to delete all but one record (dummie)
in both tables.Why I am doing this is because I have an error in the code
for vb6 that I haven't yet found a fix for the error is Run time '3426'
adding a new record to a empty db.

thanks for your help

Wayne

"Steve Schapel" wrote in message
news:uZ7xcGYqGHA.3564@TK2MSFTNGP03.phx.gbl...
> Wayne,
>
> Yes, you should be able to use a Delete Query for this purpose. The
> specifics will depend on how you identify "the first record" - can you
> give some more details about the data in this table, and an example of the
> single record you wish to retain?
>
> --
> Steve Schapel, Microsoft Access MVP
>
> Wayne & Kerri Anne wrote:
>> Can anyone give me a sample of deleting all but the first record in
>> access97 as I need to use a query to do this.
>>



Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:36 AM
Steve Schapel's Avatar Steve Schapel
Guest
 
Posts: n/a
   
   
Re: How can one delete records

Wayne,

I think you will need to run two Delete Queries, one for each table.
Assuming you can identify the "dummie" record by its ID, the SQL of the
query will be something like this...
DELETE * FROM [SECOND TABLE]
WHERE [ID]<>999

And then...
DELETE * FROM [FIRST TABLE]
WHERE [ID]<>999

--
Steve Schapel, Microsoft Access MVP

Wayne & Kerri Anne wrote:
> Steve
> Bit of background on this database is. I wrote the first version in access97
> with all the forms reports. Now I have written this program in VB6 using the
> same db.
> I have a Autonumber field which is a random number. linking this to the
> second table. Fisrt table holds info of an Address Decription of work
> required time frames and so on. the second table holds info of items to do
> at the job location and so on.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13353
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13353
> FIRST TABLE
> AutoNumber12354309,InspectionBy,InspectionDate,Ell ipseCode,Street,Suburb,Limit
> To,Limit From,Description and so on
> SECOND TABLE
> ID number copy of the
> autonmber,workordertype,UseStatus,ITSNumber,Qty,pr ojectNumber,Schedule
> startdate,Schedule Endate and so on.
>
> I am would like to run a delete query to delete all but one record (dummie)
> in both tables.Why I am doing this is because I have an error in the code
> for vb6 that I haven't yet found a fix for the error is Run time '3426'
> adding a new record to a empty db.

Reply With Quote
  #5 (permalink)  
Old 28-Jul-2006, 08:37 AM
Wayne & Kerri Anne's Avatar Wayne & Kerri Anne
Guest
 
Posts: n/a
   
   
Re: How can one delete records

  Donate Today!  
Thanks Steve
your right needed two queries
Wayne
"Steve Schapel" wrote in message
news:eErYItdqGHA.3248@TK2MSFTNGP04.phx.gbl...
> Wayne,
>
> I think you will need to run two Delete Queries, one for each table.
> Assuming you can identify the "dummie" record by its ID, the SQL of the
> query will be something like this...
> DELETE * FROM [SECOND TABLE]
> WHERE [ID]<>999
>
> And then...
> DELETE * FROM [FIRST TABLE]
> WHERE [ID]<>999
>
> --
> Steve Schapel, Microsoft Access MVP
>
> Wayne & Kerri Anne wrote:
>> Steve
>> Bit of background on this database is. I wrote the first version in
>> access97 with all the forms reports. Now I have written this program in
>> VB6 using the same db.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13353
>> I have a Autonumber field which is a random number. linking this to the
>> second table. Fisrt table holds info of an Address Decription of work
>> required time frames and so on. the second table holds info of items to
>> do at the job location and so on.
>> FIRST TABLE
>> AutoNumber12354309,InspectionBy,InspectionDate,Ell ipseCode,Street,Suburb,Limit
>> To,Limit From,Description and so on
>> SECOND TABLE
>> ID number copy of the
>> autonmber,workordertype,UseStatus,ITSNumber,Qty,pr ojectNumber,Schedule
>> startdate,Schedule Endate and so on.
>>
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13353
>> I am would like to run a delete query to delete all but one record
>> (dummie) in both tables.Why I am doing this is because I have an error in
>> the code for vb6 that I haven't yet found a fix for the error is Run time
>> '3426' adding a new record to a empty db.



Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Active Discussions
English Sri Guru Granth Sahib Ji and SRM
By sikh15
Today 11:55 AM
0 Replies, 3 Views
Edward Snowden: the...
Today 11:30 AM
2 Replies, 55 Views
What Is Difference...
Today 09:18 AM
6 Replies, 149 Views
First There is Water by...
By Ishna
Today 05:03 AM
3 Replies, 181 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 03:11 AM
403 Replies, 9,335 Views
Difference in Bowing...
Today 02:18 AM
8 Replies, 163 Views
Cooking Without Alcohol
Today 02:12 AM
12 Replies, 164 Views
Learning from Baba...
Today 01:38 AM
0 Replies, 302 Views
Eckhart Tolle
Yesterday 18:08 PM
2 Replies, 110 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Yesterday 17:21 PM
252 Replies, 5,965 Views
Thought of the Moment!
Yesterday 16:35 PM
115 Replies, 6,050 Views
New Quantum Dot...
Yesterday 09:38 AM
0 Replies, 55 Views
Girl, 5, Collects...
Yesterday 06:48 AM
0 Replies, 81 Views
No Secrets! Metadata...
Yesterday 06:01 AM
2 Replies, 70 Views
My Dad's a Dude! ......
By Aisha
16-Jun-2013 22:08 PM
4 Replies, 279 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 12:11 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.59900 seconds with 32 queries
0