Update Query for partial data

rangersedge

Registered User.
Local time
Today, 13:41
Joined
Jun 13, 2014
Messages
82
How do I get an update query to only copy part of a fields value?
For example: The original field has a date in month, day, and year. I only want to update the new field with only the year.
 
After importing an XML file. I have a table with a date of "1980-12-31 00:00:00". I want to put the Year portion of this information into another table.
 
Do I put that in the updateto field? The XML imports into the table as short text by the way.
 
Yes. (I guess?) You might want to use CDate if it is short text.
 
That worked. I used Year(CDate([FieldName])) and it worked perfectly. Thank you.
 

Users who are viewing this thread

Back
Top Bottom