|
-
Oct 5th, 2002, 06:38 AM
#1
Thread Starter
Fanatic Member
-
Oct 5th, 2002, 08:14 AM
#2
Well ...
Try using the FORMAT() function for the sort:
Code:
ORDER BY FORMAT(DateField, 'yyyy mm dd')
.
-
Oct 5th, 2002, 08:21 AM
#3
Thread Starter
Fanatic Member
Sorry....
I dont know this command
where does it go in the grand scheam of things?
Thxs
-
Oct 5th, 2002, 08:30 AM
#4
Lively Member
Private Sub Command1_Click()
Data1.RecordSource = "SELECT * FROM dates WHERE Date BETWEEN #" & Text1.Text & "# AND #" & Text2.Text & "# order by date "
Data1.Refresh
End Sub
this gives the dates between two dates in an order.
Data1.RecordSource = "SELECT * FROM dates order by year(Date), month(Date), day(Date)"
In this inspite of
year(Date), month(Date), day(Date) you can just use order by Date . It also gives the same result you want.
Your attitude determines your altitude!!!
-
Oct 5th, 2002, 09:24 AM
#5
Thread Starter
Fanatic Member
Thx
This works great, it also reduced my code by a page! thx again
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
|