Access: INSERT Date into Table

I have a Table with 2 fields of different data types:  Location (Text), Date (Date).
 Currently, the Date field is empty.
 Is there a procedure to populate the Date field in each Record with the 4 numbers contained in the Location field of each Record and concatenate "1/1/" before 4 numbers?
 The 4 numbers always appear adjacent and can be anywhere within the Location field.
 See current state (BEFORE) and desired state (AFTER), below.


 BEFORE:

 ID    Location                                                                                            Date
 1      c:\red\white\blue\red1844\green\snack1.doc
 2      c:\yellow\green\wheat2015.bmp
 3      c:\gr1995een\orange.jpg


 AFTER:

 ID    Location                                                                                            Date
 1      c:\red\white\blue\red1844\green\snack1.doc                           1/1/1844
 2      c:\yellow\green\wheat2015.bmp                                                 1/1/2015
 3      c:\gr1995een\orange.jpg                                                               1/1/1995
clock1Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gustav BrockCIOCommented:
Yes, use the function you asked for elsewhere to retrieve the year and run a query like this:

Update YourTable
Set [Date] = DateSerial(FunctionRetrievingYearFromLocation([Location]), 1, 1)

/gustav
clock1Author Commented:
The elsewhere explanation did not address:  Where is this statement used?  How are the 4 adjacent numbers in Location obtained?
Rgonzo1971Commented:
HI,

pls try in a update query

Set [Date] = Q_28713755([Location])

SInce the function in http://www.experts-exchange.com/questions/28713755/How-to-find-and-store-4-digits-in-a-string.html returns a date

Regards

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Gustav BrockCIOCommented:
You asked and accepted an answer here:

http://www.experts-exchange.com/questions/28713755/How-to-find-and-store-4-digits-in-a-string.html#a40976758

If the function returns a date of the year found, the query goes like this:

Update YourTable
Set [Date] = FunctionRetrievingDatOfYearFromLocation([Location])

 /gustav
clock1Author Commented:
Thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.