|
-
May 9th, 2001, 06:39 AM
#1
Dates
when iam trying to delete records between two of different months its not deleting.
This is the code used :
If MsgBox(" Do You Want To Delete ", vbQuestion + vbYesNo, " DELETE BY DATE ") = vbYes Then
db.Execute "Delete from CTRAN where FWDate >='" & fdt.Text & "' And SWDate <='" & sdt.Text & "'"
MsgBox db.RecordsAffected & " Records Deleted "
This is deleting records between two diff dates of the same month.please help me out.
-
May 9th, 2001, 07:04 AM
#2
Re: Dates
Your SQl must be
"Delete from CTRAN where FWDate >=#" & cDate(fdt.Text) & "# And SWDate <=#" & CDate(sdt.Text) & "#"
Iouri Boutchkine
[email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|