Solved

How to check a field for errored date format?

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

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

856 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