Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating data type field

Status
Not open for further replies.

djmousie

Technical User
Oct 10, 2001
164
US
I have an access table that is over 2 million records. I can't chage the data type on one of my fields because i am getting an error message stating that there isnt enough space or memory...

1 - Is there a work around?
2 - If not, can an update query be written so that I can update the data type so that a particular field is updated to be General Date vs. Text?
 
3 - Or possibly only update so many records at a time so it doesnt run out of memory?
 
djmousie,

Create a new field of Date data type and then run this query

UPDATE YourTableName
SET YourNewDateField = YourNonDateField
WHERE IsDate(YourNonDateField)=True

YourNonDateField format could be
mm/dd/yyyy, mm-dd-yyyy
dd/mm/yyyy, dd-mm-yyyy
yyyy/mm/dd, yyyy-mm-dd

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top