Solved

How to check a field for errored date format?

Posted on 2011-03-03
3
264 Views
Last Modified: 2012-06-27
I have a query that convert a string to a date format, how can i filter it to show only data that is not a correct date format. Normally the field shows #Error.
0
Comment
Question by:tvae
  • 2
3 Comments
 
LVL 15

Accepted Solution

by:
derekkromm earned 125 total points
ID: 35028307
select * from table where isdate(field)=false
0
 

Author Comment

by:tvae
ID: 35028480
derekkrom,

I have tried this one

IsDate(CDate(Left(Right([FOB_POINT],8),2) & "/" & Mid(Right([FOB_POINT],8),3,2) & "/" & Right(Right([FOB_POINT],8),4))) = False

And it gives me too complex error
0
 

Author Comment

by:tvae
ID: 35028537
Disregard the above. I got it to work when i took the cdate

IsDate((Left(Right([FOB_POINT],8),2) & "/" & Mid(Right([FOB_POINT],8),3,2) & "/" & Right(Right([FOB_POINT],8),4))) = False
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now