Solved

Trouble Converting Text to Data/Time

Posted on 2011-03-25
4
179 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 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 35215303
try this query

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

Expert Comment

by:Rey Obrero (Capricorn1)
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

832 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