Solved

Trouble Converting Text to Data/Time

Posted on 2011-03-25
4
176 Views
Last Modified: 2012-05-11
I have 1400 hundred records in a table that is store as text but the information is actually dates:

format: 01/30/95

When in design mode, I'm trying to convert the table data type but it says two records would be deleted because they don't contain correct date/time data.  Wondering, is there some sort of query I could do to find the two records and manually update them?  I've eyeballed the data but I'm going cross-eyed trying to find the date that is invalid.  There has got to be an easier way right?
0
Comment
Question by:gcgcit
  • 2
  • 2
4 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
Comment Utility
try this query

select fieldName from tablex where isdate([fieldname])=0
0
 
LVL 119

Expert Comment

by:Rey Obrero
Comment Utility
you can  try this one too

select fieldName from tablex where isdate([fieldname])=0 or len([fieldname])<>8 or instr([fieldname],"/")=0 or [fieldname] & ""=""
0
 

Author Closing Comment

by:gcgcit
Comment Utility
You're not an expert you are a genius! Thanks!
0
 

Author Comment

by:gcgcit
Comment Utility
Used the first one posted.
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)

Join & Write a Comment

Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 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

9 Experts available now in Live!

Get 1:1 Help Now