Solved

How to check a field for errored date format?

Posted on 2011-03-03
3
262 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
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 Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

895 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

11 Experts available now in Live!

Get 1:1 Help Now