473,387 Members | 1,578 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Age Group

When the Microsoft Access start it should automatically pick up the system date and update members’ age groups correctly in the form . For example if a person’s date of birth was yesterday and they turned 45 years old then the system would update their agegroup from 40 to 45.
Oct 7 '09 #1
8 2801
debasisdas
8,127 Expert 4TB
nothing happens automatically you need to code that.
Oct 7 '09 #2
i know that but i dont know how to put code there i know the formula is If
age= age/5
if mod!=0 then age- module
but i dont know how to start the code in microsoft access form
i put three text box in my form
age, DOB , agegroup
any help well be great
Oct 8 '09 #3
lolodede,
You could do this a couple of ways: either place the code to calculate the age group in an Event (On_Open for a continuous form displaying multiple records at once or On_Current if you are displaying one record at a time) to update the displayed value in "Age Group" or create a non-visible calculated field for each record (place the age calculation using System Date vs. DOB in it) and run the "Age Group" off of that using its value as your criteria.

~JennDub
Oct 8 '09 #4
NeoPa
32,556 Expert Mod 16PB
I'm going to move this to the Access forum as it's an Access question.

JennDub has explained how to do this - Use a calculation either in the underlying query or in the control on the form.

Let us know how you get on with this.
Oct 8 '09 #5
thanks for help alot but i dint know how to get value of textbox (age) to use it into another textbox(agegroup) and i dont know how to start this code because im biginner in vba and microsoft access forms
thanks
Oct 9 '09 #6
FishVal
2,653 Expert 2GB
A similar thread .
Oct 9 '09 #7
NeoPa
32,556 Expert Mod 16PB
@lolodede
Well, why don't you start by telling us what you have so far. Try to be as precise as possible, and to include everything that is related to this issue. It's hard to help with details when we don't know names of things like tables and fields that are involved.

The less you miss out of what we need the fewer times we'll have to ask for it.
Oct 9 '09 #8
thanks for help but i figure out i need to use vba and if statement and everything is working
thanks again
Oct 10 '09 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Mike | last post by:
I am sure that I am making a simple boneheaded mistake and I would appreciate your help in spotting in. I have just installed apache_2.0.53-win32-x86-no_ssl.exe php-5.0.3-Win32.zip...
2
by: Tom Loach | last post by:
Our system administrator set up an NT server group in order to allow our users to login to our application via https to our sql server. The group appears as a User in SQL Server when you look at...
4
by: Chad Richardson | last post by:
I've always been mistified why you can't use a column alias in the group by clause (i.e. you have to re-iterate the entire expression in the group by clause after having already done it once in the...
2
by: BillD | last post by:
I'm trying to derive a schema from a base schema. I want to redefine a "group" from the base schema in my derived schema in order to add more options to the "choice" aggregate (see schema1.xsd...
16
by: michael | last post by:
Is it possible to get all href URLs contained in a unordered list and place them in an array? Or in fact two different arrays, differently named one for each <ul> group? <ul> <li><a...
7
by: Darin | last post by:
I have a report that sub-totals on a group, then grand-totals at the report footer. If there's only one group, the sub-total and grand total are redundant, so I only want to show one of them. I...
1
by: David Horowitz | last post by:
Hi folks. I need to create a report that has a Group Header that pulls certain data from the Detail section. It's something like this: +--Report---------------------------------------- |...
7
by: Sameh Ahmed | last post by:
Hello there IsInrole gives ya the means to check if the current or impersonated user belongs to a specific windows role or group. is there a way to do the same without using ADSI to check if...
2
by: jon|k | last post by:
hi all-- i need to do a transformation that removes duplicates (among other things). to accomplish that, i'm trying to use for-each-group, but it doesn't work. i need to select for duplicates by...
3
by: Sebastian | last post by:
Hello all I have a report where I have two nested groups. I know there are only three standard options for running sum: None, Over Group and Over All. I have a MyTextBox in detail section where...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.