jpynn
New Member
- Joined
- Mar 24, 2004
- Messages
- 23
Hi,
First for the general...
I have created an acess database and was wondering if there was a place for all the different type of functions you can use in a calculated field?
Now the specifics
Here is a small sample of the table
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="14%">Primary Element</td>
<td width="14%">Air</td>
<td width="14%">Earth</td>
<td width="14%">Water</td>
<td width="14%">Fire</td>
<td width="15%">Cost</td>
<td width="15%">Adjusted cost</td>
</tr>
<tr>
<td width="14%">Air</td>
<td width="14%">4</td>
<td width="14%">0</td>
<td width="14%">0</td>
<td width="14%">1</td>
<td width="15%">50</td>
<td width="15%">To be calculated</td>
</tr>
<tr>
<td width="14%">Earth</td>
<td width="14%">0</td>
<td width="14%">3</td>
<td width="14%">0</td>
<td width="14%">1</td>
<td width="15%">70</td>
<td width="15%"> </td>
</tr>
<tr>
<td width="14%">Water</td>
<td width="14%">0</td>
<td width="14%">1</td>
<td width="14%">5</td>
<td width="14%">0</td>
<td width="15%">30</td>
<td width="15%"> </td>
</tr>
<tr>
<td width="14%">Air</td>
<td width="14%">2</td>
<td width="14%">0</td>
<td width="14%">0</td>
<td width="14%">0</td>
<td width="15%">100</td>
<td width="15%"> </td>
</tr>
<tr>
<td width="14%">Fire</td>
<td width="14%">0</td>
<td width="14%">0</td>
<td width="14%">0</td>
<td width="14%">6</td>
<td width="15%">40</td>
<td width="15%"> </td>
</tr>
</table>
I have created a form to get the following query criteria from the user
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="25%">Air</td>
<td width="25%">Earth</td>
<td width="25%">Water</td>
<td width="25%">Fire</td>
</tr>
<tr>
<td width="25%">9</td>
<td width="25%">7</td>
<td width="25%">8</td>
<td width="25%">7</td>
</tr>
</table>
The Calculation for Adjusted cost is Cost * 1/(1+"User Criteria Value of primary"-"Table value of primary")
So for Example the adjusted cost of the first line item would be 50* 1/(1+"9" - "4") = 50*1/5 = 10
Seems like it shouldn't be difficult to do except the "table value of primary" sadly however since I have no idea what functions I can use (the function list in excel has bailed me out a number of time) I am stuck .
First for the general...
I have created an acess database and was wondering if there was a place for all the different type of functions you can use in a calculated field?
Now the specifics
Here is a small sample of the table
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="14%">Primary Element</td>
<td width="14%">Air</td>
<td width="14%">Earth</td>
<td width="14%">Water</td>
<td width="14%">Fire</td>
<td width="15%">Cost</td>
<td width="15%">Adjusted cost</td>
</tr>
<tr>
<td width="14%">Air</td>
<td width="14%">4</td>
<td width="14%">0</td>
<td width="14%">0</td>
<td width="14%">1</td>
<td width="15%">50</td>
<td width="15%">To be calculated</td>
</tr>
<tr>
<td width="14%">Earth</td>
<td width="14%">0</td>
<td width="14%">3</td>
<td width="14%">0</td>
<td width="14%">1</td>
<td width="15%">70</td>
<td width="15%"> </td>
</tr>
<tr>
<td width="14%">Water</td>
<td width="14%">0</td>
<td width="14%">1</td>
<td width="14%">5</td>
<td width="14%">0</td>
<td width="15%">30</td>
<td width="15%"> </td>
</tr>
<tr>
<td width="14%">Air</td>
<td width="14%">2</td>
<td width="14%">0</td>
<td width="14%">0</td>
<td width="14%">0</td>
<td width="15%">100</td>
<td width="15%"> </td>
</tr>
<tr>
<td width="14%">Fire</td>
<td width="14%">0</td>
<td width="14%">0</td>
<td width="14%">0</td>
<td width="14%">6</td>
<td width="15%">40</td>
<td width="15%"> </td>
</tr>
</table>
I have created a form to get the following query criteria from the user
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="25%">Air</td>
<td width="25%">Earth</td>
<td width="25%">Water</td>
<td width="25%">Fire</td>
</tr>
<tr>
<td width="25%">9</td>
<td width="25%">7</td>
<td width="25%">8</td>
<td width="25%">7</td>
</tr>
</table>
The Calculation for Adjusted cost is Cost * 1/(1+"User Criteria Value of primary"-"Table value of primary")
So for Example the adjusted cost of the first line item would be 50* 1/(1+"9" - "4") = 50*1/5 = 10
Seems like it shouldn't be difficult to do except the "table value of primary" sadly however since I have no idea what functions I can use (the function list in excel has bailed me out a number of time) I am stuck .