473,473 Members | 1,758 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to calculate

I'm in the military. I must create a report to track the number of
personnel assigned.

I have an Authorization table that has a Position. Each of these
positions could be authorized any number of personnel.

Example:
1. Position
2. Speciality
3. Authorized (<-- This is the column that would have more than one)

How do I keep track of the total number assigned to an authorized
position.

The problem I'm facing is when someone enters another person for that
position it creates another authorized position to that field on the
report and thus calculates more authorizations than I really have.

I posted an example of the page where the problem is I hope someone can
help me, it's at armydatabase.com/report.pdf
Thanks

Nov 13 '05 #1
3 1615
dm******@hotmail.com wrote:
Example:
1. Position
2. Speciality
3. Authorized (<-- This is the column that would have more than one)


At first review, these three types of information should probably be in
three separate tables. For example:

The following table lists the various unit positions.

Table: TBL_POSITION
Fields:
POS_PK (an autonumber - make this the primary key)
POS_NAME (required)
POS_DESCRIPTION (a more detailed description, perhaps)

This next table lists the possible specialties, MOS/AOC (I don't know
what these are - when I was a tank officer in the Canadian army, we
referred to this as "MOC classification" for officers, or "trade" for
non-commissioned troops, plus there's also the possibility of
considering civilian) that are the minimum requirement for this
position. You could possibly have this information as part of the
position information in TBL_POSITION, above, but it occurs to me that
differing branches/MOS could have different requirements if the job is
available to more than just one trade/officer classification.

8) For example, it is common knowledge that armoured soldiers are vastly
superior to anyone in any military. A lowly armour 2Lt could do the job
of an infantry brigadier with one hand tied behind his/her back, for
example, so you might want to indicate rank/grade/whatever of whatever
MOC/Classification/Trades that can fill the position, so you'll want to
have a separate table for this:

Table: TBL_POSITION_REQUIREMENTS
Fields:
PRE_PK (autonumber - make the primary key)
PRE_POS_FK (refers to the POS_PK in the TBL_POSITION table above. Index
this, allowing duplicates)
PRE_MOS_AOC_CODE
PRE_MIN_GRADE (refers to rank)
PRE_NOTES

FInally, you need a table of the the personnel who are filling the
position(s).

Table TBL_POSITION_AUTHORIZED
Fields:
POA_PK (autonumber - make the primary key)
POA_POS_FK (refers to the POS_PK in the TBL_POSITION table above. Index
this, allowing duplicates)
POA_MOS_AOC_CODE (the ACTUAL MOS/AOC of the individual occupying the
position. This can be useful for comparing whose over/under qualified
for the job, etc)
POA_GRADE (rank - see notes on POA_MOS_AOC_CODE)
POA_FIRST_NAME
POA_LAST_NAME
POA_OTHER_NAME
POA_DATE_EFFECTIVE
POA_DATE_LEFT (the date the person left this position - this is good to
be able to get a history of people who've occupied the position and by
specifying something like POA_DATE_LEFT = NULL you'll get people who are
currently in this position)
POA_NOTES

The above is how a database should be used. A query bringing these
three tables together will give you the records for the report you want.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Nov 13 '05 #2
OK

I did something a little different. I created a subreport. The main
report will main the authorized, I want to reference the assigned from
the subreport. Take a look at the update I posted, how do I get the
assigened column to reference the assigned number in the subreport?

armydatabase.com/report.pdf

Thanks

Nov 13 '05 #3
dm******@hotmail.com wrote:
OK

I did something a little different. I created a subreport. The main
report will main the authorized, I want to reference the assigned from
the subreport. Take a look at the update I posted, how do I get the
assigened column to reference the assigned number in the subreport?

armydatabase.com/report.pdf

I'm not sure what you've done or what you're asking here por even what
your data structure is. The new report doiesn't seem to have a
subreport; it looks like a report with data grouped by section.

Without the ability to compare to your first one, I can only go by
memory and it seems (thouhg I could be wrong) that the only difference
with the new one is line 334-06 has two personnel assigned to it.

The text box under ASGN, was it throwing an error before?

In any event, I'm not sure what it is you're looking for. My first post
was more of a suggested data structure. Getting back to your original
question, I can answer the question of "How do I keep track of the total
number assigned to an authorized position.", but I really need to know
how you're tracking this data. The normalized, ie, Official Royal
Canadian Armour Corps, method I presented is the best way way to do it,
but if you're not set up that way, it can probably still be done, BUT...
I need to know how the data:

"1. Position
"2. Speciality
"3. Authorized (<-- This is the column that would have more than one)"

is currently set up.

--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Phil Powell | last post by:
Relevancy scores are normally defined by a MySQL query on a table that has a fulltext index. The rules for relevancy scoring will exclude certain words due to their being too short (minimum...
1
by: Building Blocks | last post by:
Hi, All I need is a simle calculate form script which contains this: A script that can handle text input, radio buttons, checkboxes, and dropdowns. Each one of these variables will contain a...
2
by: Gálos Zsuzsa | last post by:
Hi all, I need to calculate Formulas. For example: dim strFormula as string="25*(12-6)" I ned a DotNet Function to calculate this Formula (25*(12-6)=150): dim dblValue as double = 150
1
by: Robert de Ridder | last post by:
I use an asp page to display pages, where the dynamic content is in an iframe. To calculate the height of the iframe I use the calcheight function. However when trying to do this with external...
4
by: Jan Szymczuk | last post by:
I'm creating an MS Access 2000 database where I have a number of people entered using simple basic fields, Surname: SMITH Forenames: John DoB: 09/09/1958 Age:...
1
by: Ladislau S. | last post by:
Dear reader, I am an occasional user of MS Access 2000 running on Windows 98. My hobby is ship model building so I made a database for things that I want to buy. After two strokes I bin unable...
6
by: charliewest | last post by:
Can someone pls point me to or recommend the easiest way to calculate someone´s age using the TimeSpan object, in .NET CF? Isn´t there a simple way to use the TimeSpan object to calculate the...
3
by: Libber39 | last post by:
Hi everyone, Have a query on how to calculate the amount of weeks and days contained in a number in an access query. ie: the difference in days between 2 dates amounts to 17 days. I want to now...
0
by: SuzK | last post by:
I am trying to calculate in VBA in Access 2002 a moving average and update a table with the calculations. Fields in my WeeklyData table are Week Ending (date) ItemNbr (double) Sales Dollars...
6
by: rrstudio2 | last post by:
I am using the following vba code to calculate the median of a table in MS Access: Public Function MedianOfRst(RstName As String, fldName As String) As Double 'This function will calculate the...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.