Solved

Trouble Converting Text to Data/Time

Posted on 2011-03-25
4
178 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
ID: 35215303
try this query

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

Expert Comment

by:Rey Obrero
ID: 35215335
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
ID: 35215337
You're not an expert you are a genius! Thanks!
0
 

Author Comment

by:gcgcit
ID: 35215391
Used the first one posted.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
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…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

910 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

22 Experts available now in Live!

Get 1:1 Help Now