Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21237

[RESOLVED] how to delete a record from a table if the date has changed

$
0
0
is there a way to delete a record from a table when the date is changing?

i mean if today is 19-11-2013 and i have a record in the table
and the next day is 20-11-2013 i want this record to be deleted from the table by date

so far i have this but cant figure out the rest
Code:

Private Sub Form_Activate()
Dim DateToday As Date
 
 Set rs = CN.Execute("SELECT * FROM TempCash ORDER BY TempDate")
    While Not rs.EOF
    itm.SubItems(1) = rs!TempDate
   
End Sub

tnx for the help
BTW
the syntax of delete i have

Viewing all articles
Browse latest Browse all 21237

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>