Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Database and Reporting > Deletion


Reply
 
Thread Tools Display Modes
  #1  
Old 11-03-2000, 04:35 PM
dw134
Guest
 
Posts: n/a
Default Deletion


This question no doubt is so basic it is silly, but I am blowed if I can get this to work.

I am trying to delete records from a table prior to a date 4 days ago. So far all I have been able to succeed in doing is deleting the entire table. Or creating Object errors.

All this merriment is occuring inside Access 2000, using VBA 6.0. Someone please tell me what I am doing wrong, as any more of this and I will have no hair left at all.

Reply With Quote
  #2  
Old 11-05-2000, 11:45 AM
braindead
Guest
 
Posts: n/a
Default Re: Deletion

Hi. Have you tried using SQL ?

As in :
Delete * From "TableName" Where "Date Field" < date()-4



Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->