Group:  Microsoft Access ยป microsoft.public.access.formscoding
Thread: Birthdate calculation

Geek News

Birthdate calculation
MRKaye 12/15/2008 4:55:01 PM
I have a database with a field called Birthdate. I want to insert a unbound
field in a Form with a macro(module) with the coding for years, months, and
days. How is it writtern and how do you implement it. I have been trying for
days. This is all new to me.
Re: Birthdate calculation
fredg <fgutkind[ at ]example.invalid> 12/15/2008 5:45:44 PM
On Mon, 15 Dec 2008 08:55:01 -0800, MRKaye wrote:

[Quoted Text]
> I have a database with a field called Birthdate. I want to insert a unbound
> field in a Form with a macro(module) with the coding for years, months, and
> days. How is it writtern and how do you implement it. I have been trying for
> days. This is all new to me.


It's not clear what it is you wish.
Assume the birthdate is June 12, 1967.
Do you wish to show the year, month, and day of the birthdate, i.e.
1967, June, 12?
Or do you wish to show the person's current age as
41 years 6 months 3 days?

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Re: Birthdate calculation
MRKaye 12/15/2008 6:49:01 PM


"fredg" wrote:

[Quoted Text]
> On Mon, 15 Dec 2008 08:55:01 -0800, MRKaye wrote:
>
> > I have a database with a field called Birthdate. I want to insert a unbound
> > field in a Form with a macro(module) with the coding for years, months, and
> > days. How is it writtern and how do you implement it. I have been trying for
> > days. This is all new to me.
>
>
> It's not clear what it is you wish.
> Assume the birthdate is June 12, 1967.
> Do you wish to show the year, month, and day of the birthdate, i.e.
> 1967, June, 12?
> Or do you wish to show the person's current age as
> 41 years 6 months 3 days?
>
> --
> Fred
> Please respond only to this newsgroup.
> I do not reply to personal e-mail
>
Re: Birthdate calculation
MRKaye 12/15/2008 6:50:00 PM
I wish to show the person's current age as
41 years 6 months 3 days?

"fredg" wrote:

[Quoted Text]
> On Mon, 15 Dec 2008 08:55:01 -0800, MRKaye wrote:
>
> > I have a database with a field called Birthdate. I want to insert a unbound
> > field in a Form with a macro(module) with the coding for years, months, and
> > days. How is it writtern and how do you implement it. I have been trying for
> > days. This is all new to me.
>
>
> It's not clear what it is you wish.
> Assume the birthdate is June 12, 1967.
> Do you wish to show the year, month, and day of the birthdate, i.e.
> 1967, June, 12?
> Or do you wish to show the person's current age as
> 41 years 6 months 3 days?
>
> --
> Fred
> Please respond only to this newsgroup.
> I do not reply to personal e-mail
>
Re: Birthdate calculation
fredg <fgutkind[ at ]example.invalid> 12/15/2008 8:51:09 PM
On Mon, 15 Dec 2008 10:50:00 -0800, MRKaye wrote:

[Quoted Text]
> I wish to show the person's current age as
> 41 years 6 months 3 days?
>
> "fredg" wrote:
>
>> On Mon, 15 Dec 2008 08:55:01 -0800, MRKaye wrote:
>>
>>> I have a database with a field called Birthdate. I want to insert a unbound
>>> field in a Form with a macro(module) with the coding for years, months, and
>>> days. How is it writtern and how do you implement it. I have been trying for
>>> days. This is all new to me.
>>
>> It's not clear what it is you wish.
>> Assume the birthdate is June 12, 1967.
>> Do you wish to show the year, month, and day of the birthdate, i.e.
>> 1967, June, 12?
>> Or do you wish to show the person's current age as
>> 41 years 6 months 3 days?
>>
>> --
>> Fred
>> Please respond only to this newsgroup.
>> I do not reply to personal e-mail
>>

See:
http://www.accessmvp.com/djsteele/Diff2Dates.html

After copying and pasting the Diff2Dates function into a code module,
as the control source of an unbound control, write:

=Diff2Dates("ymd",[Birthdate],Date())

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Re: Birthdate calculation
MRKaye 12/15/2008 10:14:01 PM

Thank you so much,
mrkaye
"fredg" wrote:

[Quoted Text]
> On Mon, 15 Dec 2008 10:50:00 -0800, MRKaye wrote:
>
> > I wish to show the person's current age as
> > 41 years 6 months 3 days?
> >
> > "fredg" wrote:
> >
> >> On Mon, 15 Dec 2008 08:55:01 -0800, MRKaye wrote:
> >>
> >>> I have a database with a field called Birthdate. I want to insert a unbound
> >>> field in a Form with a macro(module) with the coding for years, months, and
> >>> days. How is it writtern and how do you implement it. I have been trying for
> >>> days. This is all new to me.
> >>
> >> It's not clear what it is you wish.
> >> Assume the birthdate is June 12, 1967.
> >> Do you wish to show the year, month, and day of the birthdate, i.e.
> >> 1967, June, 12?
> >> Or do you wish to show the person's current age as
> >> 41 years 6 months 3 days?
> >>
> >> --
> >> Fred
> >> Please respond only to this newsgroup.
> >> I do not reply to personal e-mail
> >>
>
> See:
> http://www.accessmvp.com/djsteele/Diff2Dates.html
>
> After copying and pasting the Diff2Dates function into a code module,
> as the control source of an unbound control, write:
>
> =Diff2Dates("ymd",[Birthdate],Date())
>
> --
> Fred
> Please respond only to this newsgroup.
> I do not reply to personal e-mail
>

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net