Sign Up |  Live StatsLive Stats    Articles 35,345| Comments 159,791| Members 17,820, Newest waheguruhelpme| Online 196
Home Contact
 (Forgotten?): 
    Sikhism

   
                                                                     Your Banner Here!    

Sikh Philosophy Network » Sikh Philosophy Network » Current Affairs » Information Technology » Calculating age from a specific date in a form

Calculating age from a specific date in a form

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 400 USD, Received: 35 USD (9%)
Please Donate...
Related Topics...
Thread Thread Starter Forum Replies Last Post
Calculating Late Date in Access whiteboy Information Technology 7 28-Jul-2006 08:07 AM
Help! Calculating Date/Time Brandon Y Information Technology 6 18-Nov-2005 13:59 PM
Link to a specific Form from Excel Widemonk Information Technology 1 10-Nov-2005 21:09 PM
Calculating 'due date' from drop-down box Someone Information Technology 4 08-Nov-2005 12:52 PM
Calculating Age from a Specific Date Cris Information Technology 3 31-Oct-2005 11:19 AM


Tags
calculating, age, specific, date, form
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #10 (permalink)  
Old 31-Oct-2005, 11:19 AM
Steve Schapel's Avatar Steve Schapel
Guest
 
Posts: n/a
   
   
Re: Calculating age from a specific date in a form

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
Brendan Reynolds wrote:
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/6204-calculating-age-from-specific-date-form.html
> Cris, I still think the problem may lie in the record source


Brendan, I think that may be what Cris meant where he said 'don't have
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6204
my date set up', in other words referring to the last part of your
earlier post where you asked "does the record source of the form include
the DOB field?

--
Steve Schapel, Microsoft Access MVP

*








 
Do share your immediate thoughts or reactions on this issue? We value your views! Login Now! or Sign Up Today! to share your views with us.. Gurfateh!
Reply With Quote
Sponsored Links
  #11 (permalink)  
Old 01-Nov-2005, 13:40 PM
Brendan Reynolds's Avatar Brendan Reynolds
Guest
 
Posts: n/a
   
   
Re: Calculating age from a specific date in a form

Thanks Steve. I interpreted Cris's "yes it does" to mean "yes the record
source does include the DOB field" but I guess we'll just have to wait for
clarification.

--
Brendan Reynolds


"Steve Schapel" wrote in message
news:Os3O73a3FHA.3000@TK2MSFTNGP12.phx.gbl...
> Brendan Reynolds wrote:
>> Cris, I still think the problem may lie in the record source

Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6204
>
> Brendan, I think that may be what Cris meant where he said 'don't have my
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6204
> date set up', in other words referring to the last part of your earlier
> post where you asked "does the record source of the form include the DOB
> field?
>
> --
> Steve Schapel, Microsoft Access MVP



Reply With Quote
  #12 (permalink)  
Old 01-Nov-2005, 13:40 PM
Cris's Avatar Cris
Guest
 
Posts: n/a
   
   
Re: Calculating age from a specific date in a form

It's bound directly to the table. And it wouldn't work the way I wrote the
expression above. I had to develop another text box to hold my default date
and convert the date difference from both dates into month's and divide by 12:
=Int(DateDiff("m",[DOB],[DetermDate])/12). Now it works perfectly. I can
change my default determination date whenever I need to or lock it in place
so that it always calculates from that specific date. I'm not sure why the
other way wouldn't work in my form. It kept giving me the error.

"Brendan Reynolds" wrote:

> Ah, thanks Doug. I actually copied and pasted the expression, including the
> original date format, Access automatically changed it to match my regional
> settings.
>
> Cris, I still think the problem may lie in the record source - is the form
> bound directly to the table, or is it bound to a query or SQL statement
> based on the table? If a query or SQL statement, are you *sure* that query
> or SQL statement includes the DOB field in the SELECT clause?
>
> --
> Brendan Reynolds
>
> "Douglas J. Steele" wrote in message
> news:uz65rwZ3FHA.2552@TK2MSFTNGP10.phx.gbl...
> >I think he's talking that you used dd/mm/yyyy in your example, while his
> >original example was mm/dd/yyyy.
> >
> > --
> > Doug Steele, Microsoft Access MVP
> > http://I.Am/DougSteele
> > (no e-mails, please!)
> >
> >
> >
> > "Brendan Reynolds" wrote in message
> > news:uSIwo4Y3FHA.3036@TK2MSFTNGP15.phx.gbl...
> >> I'm not sure what you mean by 'don't have my date set up'.
> >>
> >> --
> >> Brendan Reynolds
> >>
> >> "Cris" wrote in message
> >> news:F36763ED-ADAC-4465-8BC6-D2FBFBEFD60C@microsoft.com...
> >>> Yes It does. and putting a $ instead of # in my post was a typo on my
> >>> part
> >>> in the expression itself it does have the # . I don't have my date set
> >>> up as
> >>> you do down below though, Could that be the problem?
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6204
> >>>
> >>> "Brendan Reynolds" wrote:
> >>>
> >>>> I copied and pasted your expression, changing only the name of the DOB
> >>>> field, to match the name of a field in my test table ...
> >>>>
> >>>> =DateDiff("yyyy",[BirthDate],#30/04/2006#)+(Format([BirthDate],"mmdd")>Format(#30/04/2006#,"mmdd"))
> >>>>
> >>>> .... and could not reproduce the error. So there doesn't seem to be
> >>>> anything
> >>>> wrong in the expression itself. This leads me to wonder if the error
> >>>> might
> >>>> be in the record source of the form - does the record source of the
> >>>> form
> >>>> include the DOB field?
> >>>>
> >>>> --
> >>>> Brendan Reynolds
> >>>>
> >>>> "Cris" wrote in message
> >>>> news:6C80A0E4-6E50-4C2A-892B-4795966BB049@microsoft.com...
> >>>> > I'm trying to calculate DOB based off the specific date 4/30/2006.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6204
> >>>> > I've
> >>>> > read
> >>>> > all the posts and have entered the following expression in the
> >>>> > control
> >>>> > souce
> >>>> > of an unbound text box in my form:
> >>>> > =DateDiff("yyyy",[DOB],$4/30/2006#)+(Format([DOB],"mmdd")>Format(#4/30/2006#,"mmdd")).
> >>>> > [DOB] is a field in my table.
> >>>> > It is not doing anything. When I transfer back to the data entry
> >>>> > view of
> >>>> > my form #Name? appears in the box that should contain/display my
> >>>> > calculation.
> >>>> > What am I doing wrong? I'm getting very frustrated. Any help anyone
> >>>> > could
> >>>> > give would be great. Is there another way to caculated the age.
> >>>>
> >>>>
> >>>>
> >>
> >>

> >
> >

>
>
>

Reply With Quote
  #13 (permalink)  
Old 01-Nov-2005, 13:40 PM
Brendan Reynolds's Avatar Brendan Reynolds
Guest
 
Posts: n/a
   
   
Re: Calculating age from a specific date in a form

Unfortunately, that expression is not accurate. For example, I was born on
the 22nd of May. That expression would return an incorrect result for my
birth date on the 1st of May to the 21st of May, inclusive.

--
Brendan Reynolds

"Cris" wrote in message
news:8FE4DADC-B19C-43B9-8AC2-9093A13F1666@microsoft.com...
> It's bound directly to the table. And it wouldn't work the way I wrote
> the
> expression above. I had to develop another text box to hold my default
> date
> and convert the date difference from both dates into month's and divide by
> 12:
> =Int(DateDiff("m",[DOB],[DetermDate])/12). Now it works perfectly. I can
> change my default determination date whenever I need to or lock it in
> place
> so that it always calculates from that specific date. I'm not sure why
> the
> other way wouldn't work in my form. It kept giving me the error.
>
> "Brendan Reynolds" wrote:
>
>> Ah, thanks Doug. I actually copied and pasted the expression, including
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6204
>> the
>> original date format, Access automatically changed it to match my
>> regional
>> settings.
>>
>> Cris, I still think the problem may lie in the record source - is the
>> form
>> bound directly to the table, or is it bound to a query or SQL statement
>> based on the table? If a query or SQL statement, are you *sure* that
>> query
>> or SQL statement includes the DOB field in the SELECT clause?
>>
>> --
>> Brendan Reynolds
>>
>> "Douglas J. Steele" wrote in message
>> news:uz65rwZ3FHA.2552@TK2MSFTNGP10.phx.gbl...
>> >I think he's talking that you used dd/mm/yyyy in your example, while his
>> >original example was mm/dd/yyyy.
>> >
>> > --
>> > Doug Steele, Microsoft Access MVP
>> > http://I.Am/DougSteele
>> > (no e-mails, please!)
>> >
>> >
>> >
>> > "Brendan Reynolds" wrote in
>> > message
>> > news:uSIwo4Y3FHA.3036@TK2MSFTNGP15.phx.gbl...
>> >> I'm not sure what you mean by 'don't have my date set up'.
>> >>
>> >> --
>> >> Brendan Reynolds
>> >>
>> >> "Cris" wrote in message
>> >> news:F36763ED-ADAC-4465-8BC6-D2FBFBEFD60C@microsoft.com...
>> >>> Yes It does. and putting a $ instead of # in my post was a typo on
>> >>> my
>> >>> part
>> >>> in the expression itself it does have the # . I don't have my date
>> >>> set
>> >>> up as
>> >>> you do down below though, Could that be the problem?
>> >>>
>> >>> "Brendan Reynolds" wrote:
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6204
>> >>>
>> >>>> I copied and pasted your expression, changing only the name of the
>> >>>> DOB
>> >>>> field, to match the name of a field in my test table ...
>> >>>>
>> >>>> =DateDiff("yyyy",[BirthDate],#30/04/2006#)+(Format([BirthDate],"mmdd")>Format(#30/04/2006#,"mmdd"))
>> >>>>
>> >>>> .... and could not reproduce the error. So there doesn't seem to be
>> >>>> anything
>> >>>> wrong in the expression itself. This leads me to wonder if the error
>> >>>> might
>> >>>> be in the record source of the form - does the record source of the
>> >>>> form
>> >>>> include the DOB field?
>> >>>>
>> >>>> --
>> >>>> Brendan Reynolds
>> >>>>
>> >>>> "Cris" wrote in message
>> >>>> news:6C80A0E4-6E50-4C2A-892B-4795966BB049@microsoft.com...
>> >>>> > I'm trying to calculate DOB based off the specific date 4/30/2006.
>> >>>> > I've
>> >>>> > read
>> >>>> > all the posts and have entered the following expression in the
>> >>>> > control
>> >>>> > souce
>> >>>> > of an unbound text box in my form:
>> >>>> > =DateDiff("yyyy",[DOB],$4/30/2006#)+(Format([DOB],"mmdd")>Format(#4/30/2006#,"mmdd")).
>> >>>> > [DOB] is a field in my table.
>> >>>> > It is not doing anything. When I transfer back to the data entry
>> >>>> > view of
>> >>>> > my form #Name? appears in the box that should contain/display my
>> >>>> > calculation.
>> >>>> > What am I doing wrong? I'm getting very frustrated. Any help
>> >>>> > anyone
>> >>>> > could
>> >>>> > give would be great. Is there another way to caculated the age.
>> >>>>
>> >>>>
>> >>>>
>> >>
>> >>
>> >
>> >

>>
>>
>>



Reply With Quote
  #14 (permalink)  
Old 03-Nov-2005, 11:35 AM
Cris's Avatar Cris
Guest
 
Posts: n/a
   
   
Re: Calculating age from a specific date in a form

But what I need the age result to be is based on the month and year of birth
not so much the day. I need to figure a players league age based off a cut
off of April 30 of the coming year. So if a player enters our program today
and is 7 years old now but born in April of 98 his league age would be 8
because he will reach the age of 8 by the end of April. If his DOB is May of
98 his league age is 7 because he was still 7 in the month of April. The
expression I put in place is working that way. It's not giving me the exact
Years Months Days, but I don't need it to. I just need the Year age the
player would be by the end of the month of April. Is there another way to
calculate this. Remember my knowledge is very limited. This is the first
time I've ever worked with Access. Thanks for your help.

"Brendan Reynolds" wrote:

> Unfortunately, that expression is not accurate. For example, I was born on
> the 22nd of May. That expression would return an incorrect result for my
> birth date on the 1st of May to the 21st of May, inclusive.
>
> --
> Brendan Reynolds
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6204
>
> "Cris" wrote in message
> news:8FE4DADC-B19C-43B9-8AC2-9093A13F1666@microsoft.com...
> > It's bound directly to the table. And it wouldn't work the way I wrote
> > the
> > expression above. I had to develop another text box to hold my default
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6204
> > date
> > and convert the date difference from both dates into month's and divide by
> > 12:
> > =Int(DateDiff("m",[DOB],[DetermDate])/12). Now it works perfectly. I can
> > change my default determination date whenever I need to or lock it in
> > place
> > so that it always calculates from that specific date. I'm not sure why
> > the
> > other way wouldn't work in my form. It kept giving me the error.
> >
> > "Brendan Reynolds" wrote:
> >
> >> Ah, thanks Doug. I actually copied and pasted the expression, including
> >> the
> >> original date format, Access automatically changed it to match my
> >> regional
> >> settings.
> >>
> >> Cris, I still think the problem may lie in the record source - is the
> >> form
> >> bound directly to the table, or is it bound to a query or SQL statement
> >> based on the table? If a query or SQL statement, are you *sure* that
> >> query
> >> or SQL statement includes the DOB field in the SELECT clause?
> >>
> >> --
> >> Brendan Reynolds
> >>
> >> "Douglas J. Steele" wrote in message
> >> news:uz65rwZ3FHA.2552@TK2MSFTNGP10.phx.gbl...
> >> >I think he's talking that you used dd/mm/yyyy in your example, while his
> >> >original example was mm/dd/yyyy.
> >> >
> >> > --
> >> > Doug Steele, Microsoft Access MVP
> >> > http://I.Am/DougSteele
> >> > (no e-mails, please!)
> >> >
> >> >
> >> >
> >> > "Brendan Reynolds" wrote in
> >> > message
> >> > news:uSIwo4Y3FHA.3036@TK2MSFTNGP15.phx.gbl...
> >> >> I'm not sure what you mean by 'don't have my date set up'.
> >> >>
> >> >> --
> >> >> Brendan Reynolds
> >> >>
> >> >> "Cris" wrote in message
> >> >> news:F36763ED-ADAC-4465-8BC6-D2FBFBEFD60C@microsoft.com...
> >> >>> Yes It does. and putting a $ instead of # in my post was a typo on
> >> >>> my
> >> >>> part
> >> >>> in the expression itself it does have the # . I don't have my date
> >> >>> set
> >> >>> up as
> >> >>> you do down below though, Could that be the problem?
> >> >>>
> >> >>> "Brendan Reynolds" wrote:
> >> >>>
> >> >>>> I copied and pasted your expression, changing only the name of the
> >> >>>> DOB
> >> >>>> field, to match the name of a field in my test table ...
> >> >>>>
> >> >>>> =DateDiff("yyyy",[BirthDate],#30/04/2006#)+(Format([BirthDate],"mmdd")>Format(#30/04/2006#,"mmdd"))
> >> >>>>
> >> >>>> .... and could not reproduce the error. So there doesn't seem to be
> >> >>>> anything
> >> >>>> wrong in the expression itself. This leads me to wonder if the error
> >> >>>> might
> >> >>>> be in the record source of the form - does the record source of the
> >> >>>> form
> >> >>>> include the DOB field?
> >> >>>>
> >> >>>> --
> >> >>>> Brendan Reynolds
> >> >>>>
> >> >>>> "Cris" wrote in message
> >> >>>> news:6C80A0E4-6E50-4C2A-892B-4795966BB049@microsoft.com...
> >> >>>> > I'm trying to calculate DOB based off the specific date 4/30/2006.
> >> >>>> > I've
> >> >>>> > read
> >> >>>> > all the posts and have entered the following expression in the
> >> >>>> > control
> >> >>>> > souce
> >> >>>> > of an unbound text box in my form:
> >> >>>> > =DateDiff("yyyy",[DOB],$4/30/2006#)+(Format([DOB],"mmdd")>Format(#4/30/2006#,"mmdd")).
> >> >>>> > [DOB] is a field in my table.
> >> >>>> > It is not doing anything. When I transfer back to the data entry
> >> >>>> > view of
> >> >>>> > my form #Name? appears in the box that should contain/display my
> >> >>>> > calculation.
> >> >>>> > What am I doing wrong? I'm getting very frustrated. Any help
> >> >>>> > anyone
> >> >>>> > could
> >> >>>> > give would be great. Is there another way to caculated the age.
> >> >>>>
> >> >>>>
> >> >>>>
> >> >>
> >> >>
> >> >
> >> >
> >>
> >>
> >>

>
>
>

Reply With Quote
  #15 (permalink)  
Old 03-Nov-2005, 11:35 AM
Brendan Reynolds's Avatar Brendan Reynolds
Guest
 
Posts: n/a
   
   
Re: Calculating age from a specific date in a form

If it does what you need, Cris, that's fine. Congratulations on solving your
problem.

--
Brendan Reynolds


"Cris" wrote in message
news:A7B39AFF-1B5B-4637-9531-CDFEF929FB38@microsoft.com...
> But what I need the age result to be is based on the month and year of
> birth
> not so much the day. I need to figure a players league age based off a
> cut
> off of April 30 of the coming year. So if a player enters our program
> today
> and is 7 years old now but born in April of 98 his league age would be 8
> because he will reach the age of 8 by the end of April. If his DOB is May
> of
> 98 his league age is 7 because he was still 7 in the month of April. The
> expression I put in place is working that way. It's not giving me the
> exact
> Years Months Days, but I don't need it to. I just need the Year age the
> player would be by the end of the month of April. Is there another way to
> calculate this. Remember my knowledge is very limited. This is the first
> time I've ever worked with Access. Thanks for your help.
>
> "Brendan Reynolds" wrote:
>
>> Unfortunately, that expression is not accurate. For example, I was born
>> on
>> the 22nd of May. That expression would return an incorrect result for my
>> birth date on the 1st of May to the 21st of May, inclusive.
>>
>> --
>> Brendan Reynolds
>>
>> "Cris" wrote in message
>> news:8FE4DADC-B19C-43B9-8AC2-9093A13F1666@microsoft.com...
>> > It's bound directly to the table. And it wouldn't work the way I wrote
>> > the
>> > expression above. I had to develop another text box to hold my default
>> > date
>> > and convert the date difference from both dates into month's and divide
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6204
>> > by
>> > 12:
>> > =Int(DateDiff("m",[DOB],[DetermDate])/12). Now it works perfectly. I
>> > can
>> > change my default determination date whenever I need to or lock it in
>> > place
>> > so that it always calculates from that specific date. I'm not sure why
>> > the
>> > other way wouldn't work in my form. It kept giving me the error.
>> >
>> > "Brendan Reynolds" wrote:
>> >
>> >> Ah, thanks Doug. I actually copied and pasted the expression,
>> >> including
>> >> the
>> >> original date format, Access automatically changed it to match my
>> >> regional
>> >> settings.
>> >>
>> >> Cris, I still think the problem may lie in the record source - is the
>> >> form
>> >> bound directly to the table, or is it bound to a query or SQL
>> >> statement
>> >> based on the table? If a query or SQL statement, are you *sure* that
>> >> query
>> >> or SQL statement includes the DOB field in the SELECT clause?
>> >>
>> >> --
>> >> Brendan Reynolds
>> >>
>> >> "Douglas J. Steele" wrote in
>> >> message
>> >> news:uz65rwZ3FHA.2552@TK2MSFTNGP10.phx.gbl...
>> >> >I think he's talking that you used dd/mm/yyyy in your example, while
>> >> >his
>> >> >original example was mm/dd/yyyy.
>> >> >
>> >> > --
>> >> > Doug Steele, Microsoft Access MVP
>> >> > http://I.Am/DougSteele
>> >> > (no e-mails, please!)
>> >> >
>> >> >
>> >> >
>> >> > "Brendan Reynolds" wrote in
>> >> > message
>> >> > news:uSIwo4Y3FHA.3036@TK2MSFTNGP15.phx.gbl...
>> >> >> I'm not sure what you mean by 'don't have my date set up'.
>> >> >>
>> >> >> --
>> >> >> Brendan Reynolds
>> >> >>
>> >> >> "Cris" wrote in message
>> >> >> news:F36763ED-ADAC-4465-8BC6-D2FBFBEFD60C@microsoft.com...
>> >> >>> Yes It does. and putting a $ instead of # in my post was a typo
>> >> >>> on
>> >> >>> my
>> >> >>> part
>> >> >>> in the expression itself it does have the # . I don't have my
>> >> >>> date
>> >> >>> set
>> >> >>> up as
>> >> >>> you do down below though, Could that be the problem?
>> >> >>>
>> >> >>> "Brendan Reynolds" wrote:
>> >> >>>
>> >> >>>> I copied and pasted your expression, changing only the name of
>> >> >>>> the
>> >> >>>> DOB
>> >> >>>> field, to match the name of a field in my test table ...
>> >> >>>>
>> >> >>>> =DateDiff("yyyy",[BirthDate],#30/04/2006#)+(Format([BirthDate],"mmdd")>Format(#30/04/2006#,"mmdd"))
>> >> >>>>
>> >> >>>> .... and could not reproduce the error. So there doesn't seem to
>> >> >>>> be
>> >> >>>> anything
>> >> >>>> wrong in the expression itself. This leads me to wonder if the
>> >> >>>> error
>> >> >>>> might
>> >> >>>> be in the record source of the form - does the record source of
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6204
>> >> >>>> the
>> >> >>>> form
>> >> >>>> include the DOB field?
>> >> >>>>
>> >> >>>> --
>> >> >>>> Brendan Reynolds
>> >> >>>>
>> >> >>>> "Cris" wrote in message
>> >> >>>> news:6C80A0E4-6E50-4C2A-892B-4795966BB049@microsoft.com...
>> >> >>>> > I'm trying to calculate DOB based off the specific date
>> >> >>>> > 4/30/2006.
>> >> >>>> > I've
>> >> >>>> > read
>> >> >>>> > all the posts and have entered the following expression in the
>> >> >>>> > control
>> >> >>>> > souce
>> >> >>>> > of an unbound text box in my form:
>> >> >>>> > =DateDiff("yyyy",[DOB],$4/30/2006#)+(Format([DOB],"mmdd")>Format(#4/30/2006#,"mmdd")).
>> >> >>>> > [DOB] is a field in my table.
>> >> >>>> > It is not doing anything. When I transfer back to the data
>> >> >>>> > entry
>> >> >>>> > view of
>> >> >>>> > my form #Name? appears in the box that should contain/display
>> >> >>>> > my
>> >> >>>> > calculation.
>> >> >>>> > What am I doing wrong? I'm getting very frustrated. Any help
>> >> >>>> > anyone
>> >> >>>> > could
>> >> >>>> > give would be great. Is there another way to caculated the
>> >> >>>> > age.
>> >> >>>>
>> >> >>>>
>> >> >>>>
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >>
>> >>

>>
>>
>>



Reply With Quote
  #16 (permalink)  
Old 28-Jul-2006, 08:34 AM
Wes's Avatar Wes
Guest
 
Posts: n/a
   
   
RE: Calculating age from a specific date in a form

How do I get the first day of the current year using the system date?
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6204
I need to have a query give me "01-01-YYYY" no mater what year it is.
How do I get this?

Thank you,
gene
Reply With Quote
  #17 (permalink)  
Old 28-Jul-2006, 08:34 AM
Douglas J Steele's Avatar Douglas J Steele
Guest
 
Posts: n/a
   
   
Re: Calculating age from a specific date in a form

  Donate Today!  
DateSerial(Year(Date()), 1, 1)
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6204
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6204

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"Wes" wrote in message
news:3C7323A1-C984-4ED5-B512-81E1C041D3FE@microsoft.com...
> How do I get the first day of the current year using the system date?
> I need to have a query give me "01-01-YYYY" no mater what year it is.
> How do I get this?
>
> Thank you,
> gene



Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Gurbani Jukebox
Listen to Gurbani while surfing SPN!
» Active Discussions
sikhism need urgent advice.......
Today 10:03 AM
7 Replies, 87 Views
sikhism Who is "Mohan"?
Today 08:46 AM
22 Replies, 348 Views
sikhism How important is Matha...
Today 08:12 AM
59 Replies, 1,041 Views
sikhism ਨਾਮਾ
Today 06:37 AM
2 Replies, 53 Views
sikhism Sikh Diamonds Video...
Today 04:23 AM
6 Replies, 120 Views
sikhism Are Creator and Creation...
Today 01:30 AM
44 Replies, 2,837 Views
sikhism Herman Hesse,...
Today 00:54 AM
13 Replies, 230 Views
sikhism On a Scale of Most...
Yesterday 21:42 PM
30 Replies, 1,277 Views
sikhism I became victim by...
Yesterday 19:50 PM
0 Replies, 46 Views
sikhism Sikh Books downloads
Yesterday 15:39 PM
2 Replies, 66 Views
sikhism Salok Sheikh Farid ji...
Yesterday 09:35 AM
0 Replies, 47 Views
sikhism In Punjab, three farmers...
Yesterday 05:36 AM
0 Replies, 49 Views
sikhism Supernatural Sikhs, what...
Yesterday 03:45 AM
19 Replies, 416 Views
sikhism Sukhmani Sahib Astpadi...
26-May-2012 22:57 PM
0 Replies, 51 Views
Do You Think You Are...
26-May-2012 09:59 AM
94 Replies, 8,258 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.2

All times are GMT +6.5. The time now is 10:20 AM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.75868 seconds with 30 queries