UPDATE field with year and month

User avatar
sal21
PlatinumLounger
Posts: 4370
Joined: 26 Apr 2010, 17:36

UPDATE field with year and month

Post by sal21 »

I have a field named DATE1 = 03/12/2009
an dhave field Month and field Year ...
How to update Month and Year fields only with Year format YYYY and Month format MM

un this case Year 2009 and Month 12
month and year are text format
Last edited by sal21 on 29 Nov 2010, 21:37, edited 1 time in total.

User avatar
HansV
Administrator
Posts: 78629
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: UPDATE field with year and month

Post by HansV »

I don't understand your question.

(You haven't reacted to the replies to your previous three threads... :sad:)
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4370
Joined: 26 Apr 2010, 17:36

Re: UPDATE field with year and month

Post by sal21 »

HansV wrote:I don't understand your question.

(You haven't reacted to the replies to your previous three threads... :sad:)
In effect i have this 3 fields:

DATE1 Year Month
12/12/2005
11/11/2006
....

i need with a query

DATE1 Year Month
12/12/2005 2005 12
11/11/2006 2006 11
....

update the field Year and Month...

User avatar
HansV
Administrator
Posts: 78629
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: UPDATE field with year and month

Post by HansV »

Oh, OK.

Year: Year([DATE1])

Month: Month([DATE1])

Was that so difficult?
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4370
Joined: 26 Apr 2010, 17:36

Re: UPDATE field with year and month

Post by sal21 »

HansV wrote:Oh, OK.

Year: Year([DATE1])

Month: Month([DATE1])

Was that so difficult?
TKS! WORK!
But sorry me... my Boss love Access... me not!
for my Boss all is so simple :grin: :hairout: :rofl: :sad: :scratch: