Computing.Net > Forums > Office Software > access2k calculated field

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

access2k calculated field

Reply to Message Icon

Name: gaayathiri
Date: May 10, 2005 at 00:37:32 Pacific
OS: win xp pro
CPU/Ram: 256
Comment:

hi, thnx in advance.
I am building a db for a sports event. I have 2 tables. participants and agecalc. in agecalc I have fields age and age-group. if age is 3 yrs then age group is 3-4 yrs and so on.

in the form created using "participants", there is a field calculating the age based on the date of birth.it displays the age in years. in the same form, I want to have a field which will automatically display the age group as well.

I want the field to grab the final answer from the age calcuting field and refer to the "agecalc" table. then to display the appropriate age group.

I tried this, but did not work. please help:
=(SELECT [Age_group]![agecalc] FROM [agecalc] IIF([Age]![agecalc] = [Age] ,0))

thankyou



Sponsored Link
Ads by Google

Response Number 1
Name: mdow
Date: May 10, 2005 at 06:54:22 Pacific
Reply:

Try this
=DLookup("Age_Group","ageclac","age = " & [Age])


0

Response Number 2
Name: gaayathiri
Date: May 10, 2005 at 18:12:18 Pacific
Reply:

hi
thnx, I tried but it did not work. :o(


0

Response Number 3
Name: smithdk
Date: May 10, 2005 at 19:26:44 Pacific
Reply:

The Dlookup command will definitely work for you. Review the Access help on that command. Where on the form are you putting that command?


0

Response Number 4
Name: smithdk
Date: May 10, 2005 at 19:52:36 Pacific
Reply:

Try this:

=DLookUp("[Age_group]","agecalc","[age] = [age1]")

I am not sure what the name of your text box on your form is for the age but put that name in place of age1.


0

Response Number 5
Name: gaayathiri
Date: May 11, 2005 at 00:46:11 Pacific
Reply:

it worked.
thnx heaps.


0

Related Posts

See More



Response Number 6
Name: smithdk
Date: May 11, 2005 at 15:32:18 Pacific
Reply:

Glad you got it working


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: access2k calculated field

Calculated field in Access 2000 www.computing.net/answers/office/calculated-field-in-access-2000/7336.html

adding values of three fields www.computing.net/answers/office/adding-values-of-three-fields/2934.html

Ms excel www.computing.net/answers/office/ms-excel/726.html