PC Review


Reply
Thread Tools Rate Thread

Deleting records from a table

 
 
=?Utf-8?B?UGlldHJv?=
Guest
Posts: n/a
 
      31st Aug 2006
I have a question :
I want to use the action 'OnClose' to delete the records of a table called
"customers",where the value of the field "status" and the field "receiving
date" of the table are NUll.
 
Reply With Quote
 
 
 
 
Steve Schapel
Guest
Posts: n/a
 
      31st Aug 2006
Pietro,

You can use a macro or a VBA procedure to run a Delete Query. In code,
a suggested way would be like this...
CurrentDb.Execute "DELETE * FROM Customers WHERE Status Is Null AND
[Receiving Date] Is Null", dbFailOnError

--
Steve Schapel, Microsoft Access MVP

Pietro wrote:
> I have a question :
> I want to use the action 'OnClose' to delete the records of a table called
> "customers",where the value of the field "status" and the field "receiving
> date" of the table are NUll.

 
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
Deleting records from a table Alan Microsoft Access 3 6th Jun 2010 02:34 PM
Re: Deleting Records from another Table Jeff Boyce Microsoft Access Form Coding 1 15th Apr 2009 01:16 AM
Re: Deleting Records from another Table John W. Vinson Microsoft Access Form Coding 0 15th Apr 2009 01:14 AM
Deleting Records from a table Fredsf Microsoft Access Database Table Design 3 5th Feb 2004 12:14 AM
Deleting records based on records in another table Paul Fenton Microsoft Access Queries 1 23rd Aug 2003 10:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:24 PM.