473,386 Members | 1,969 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,386 software developers and data experts.

Access - Demographics

Hi guys

I'm designing a legal client database for internal use. Due to our funding agreement, we need to provide the government with demographics pertaining to the number of children in our clients care and the age breakdown (0-2, 3-8, 9-14, 15 and over). As this is a little out of my Access skill set, I am wondering if there is an easy way to code this into our table/form as our clients tend to have 5+ children.

Any ideas would be greatly appreciated.

Cheers
Penza
Jul 25 '18 #1
3 1369
PhilOfWalton
1,430 Expert 1GB
Welcome to Bytes

You need to be a little clearer in your thoughts. Presumably each child is entered into your Database and their Date of Birth should be in their record.

Assuming that is correct, are we talking about their age now, or at some fixed date like January 1st or the start of the school year?

You also need to be much clearer on your age ranges. Where dose a child aged eight and a half fit. I suspect the ages should be something like 0 but less than 3, 3 but less than 9, 9 but less than 15, and 15 and over.

Please clarify

Phil
Jul 25 '18 #2
Thanks for your reply Phil.

The parent of the children will be entered into the database. There will be no other data recorded regarding the children other than their age demographic. As I said before, we service clients with large families and I would like the form to be able to accommodate this without being too bulky.

Government has requested the following in our funding agreement:
"Client information data for all legal services must include:
Proportion of clients with children in their care; of clients with children in their care, proportion of children by age breakdown (including pregnancy, 0-2, 3-8, 9-14, 15 and over)."

Of course, none of this data can be entered into the government sanctioned reporting system so I need to be able to record and report it.

Any ideas.
Jul 25 '18 #3
zmbd
5,501 Expert Mod 4TB
There will be no other data recorded regarding the children other than their age demographic
+ Is there any reason you cannot record the birthdate? It would make your job exceptionally easier from a maintenance standpoint if you have the birthdate as you can calculate the age instead of constantly questioning the parents about the children's ages.
I have been using some VBA from Allen Brown for ages:
Allen Browne.Age() Function
Expand|Select|Wrap|Line Numbers
  1. 'http://allenbrowne.com/func-08.html
  2. 'Allen Browne. Age() Function
  3. '
  4. Function Age(varDOB As Variant, Optional varAsOf As Variant) As Variant
  5.     'Purpose:   Return the Age in years.
  6.     'Arguments: varDOB = Date Of Birth
  7.     '           varAsOf = the date to calculate the age at, or today if missing.
  8.     'Return:    Whole number of years.
  9.     Dim dtDOB As Date
  10.     Dim dtAsOf As Date
  11.     Dim dtBDay As Date  'Birthday in the year of calculation.
  12.  
  13.     Age = Null          'Initialize to Null
  14.  
  15.     'Validate parameters
  16.     If IsDate(varDOB) Then
  17.         dtDOB = varDOB
  18.  
  19.         If Not IsDate(varAsOf) Then  'Date to calculate age from.
  20.             dtAsOf = Date
  21.         Else
  22.             dtAsOf = varAsOf
  23.         End If
  24.  
  25.         If dtAsOf >= dtDOB Then      'Calculate only if it's after person was born.
  26.             dtBDay = DateSerial(Year(dtAsOf), Month(dtDOB), Day(dtDOB))
  27.             Age = DateDiff("yyyy", dtDOB, dtAsOf) + (dtBDay > dtAsOf)
  28.         End If
  29.     End If
  30. End Function
Typically I use this as a calculated field in a query to generate the ages.

+ Are you working with an established database or are you developing this from the ground-up?

+ The partition function would be ideal for this application if the age spans were a bit more even.
ADezii has a very nice insight article covering this:
home > topics > microsoft access / vba > insights > the partition() function
There's also a link to a frequency distribution discussion at FMSInc.com in this article that you might find useful if the Partition() doesn't fill the bill.

+
Proportion of clients with children in their care; of clients with children in their care, proportion of children by age breakdown (including pregnancy, 0-2, 3-8, 9-14, 15 and over)."
By way of example, I take this to mean:
- that if you have 100 parents and only 20 of them have children then you would report that 20% of the families have children.
- That of the these families there are a total of 100 children (taking your 5/family number) and of these
-1-0-2 would be 15% (where -1 = unborn)
3-8 would be 15%
8-15 would be 15%
15-18 would be 55% - thus excluding persons over 18

Is the above correct?
Jul 25 '18 #4

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

Similar topics

63
by: Jerome | last post by:
Hi, I'm a bit confused ... when would I rather write an database application using MS Access and Visual Basic and when (and why) would I rather write it using Visual Studio .Net? Is it as easy...
13
by: bill | last post by:
I am trying to convince a client that dotNet is preferable to an Access project (ADP/ADE). This client currently has a large, pure Access MDB solution with 30+ users, which needs to be upgraded....
1
by: Dave | last post by:
Hello NG, Regarding access-declarations and member using-declarations as used to change the access level of an inherited base member... Two things need to be considered when determining an...
13
by: Simon Bailey | last post by:
I am a newcomer to databases and am not sure which DBMS to use. I have a very simplified knowledge of databases overall. I would very much appreciate a (simplifed) message explaining the advantages...
1
by: Marcus | last post by:
I have a question. I am currently responsible for updating the entire payroll and pensioner system for several pension funds. I have made the appropriate tables for demographics, home address,...
0
by: JIM.H. | last post by:
Hello, I have an SQL table that keeps a small dental clinic patient demographics. Now I need to provide an add new/search/edit/delete patients through asp.net web interface. What is the best way...
0
by: Kirk | last post by:
I am writing my first (basic) application in VB.NET 2005 that connects to a SQL Server 2000 database. I am creating a user control for basic demographic information (name, dob, ssn, etc.). i was...
2
by: Jon Turlington | last post by:
When in access the SQL Statement works as expected; in ADO it does not. I have replaced the * with the % so I am sure that's not the problem. Anyone have any idea? <% Dim objConn, objRS,...
4
by: kiwipedia | last post by:
Hi everyone - here is my problem: I've got an Access 2002 database with a table and a field (not the primary key) called . This table has a one to many relationship with a table called . ...
2
by: eitsubashkumars | last post by:
I have configured remote access VPN with local pool in ASA firewall however im accessing all the resources(my private network such as servers ) through Asa firewall after getting connected the VPN...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.