No they are in the same field. It is a due date field but the users want to put in data like TBD or In Work, in some records.
Main Topics
Browse All TopicsI have a text field that contains dates and text. I want to sort the field on the report by date ascending and then the text records A-Z. How do I do it?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Definitely not recommended. That means that the field must actually be Text field, instead of a DateTime field. That means that simple sorting will depend of the date format, which probably starts with the day or the month.
In this case there would also have to be a way to tell when the date part ends and the text begins. A query like this might work. It expects the first 8 characters to be the date.
SELECT MyTable.MyDateAndText FROM tbl2
ORDER BY CDate(Left([MyDateAndText]
But see this as a quick and dirty get round until you have separate date and comments fields.
Here's a sample of the data. Users want to see the due dates and the comments in the same field in the report. Is there an easy way to do that?
Title - Project One
Due date - 26 Jul 09
Title - Project Two
Due date - TBD (to be determined)
Title - Project Three
Due Date 15 Aug 09
Title - Project Four
Due Date - N/A
Requested Report Results. Order by due date then alphabetical on records with no date:
Project One - 26 Jul 09
Project Three - 15 Aug 09
Project Four - N/A
Project Two - TBD
1) Add the UDF to a regular VBA module
2) Run a query like this:
SELECT Title, DueDate
FROM SomeTable
ORDER BY IsDate(RegExpFind(DueDate,
IIf(IsDate(RegExpFind(DueD
Your client will be far, far better off splitting the due date and the comments into separate columns...
Business Accounts
Answer for Membership
by: DatabaseMXPosted on 2008-10-30 at 16:26:27ID: 22846479
Two different fields?
If so, you can (and should) use the report Grouping and Sorting dialog to specify the Sort order.
mx