MajorYoshi
Technical User
Good day,
(using Access 2003) I'm working on a 'little' database for our weekly Battletech/Mechwarrior sessions. It's a character generator. I'm doing most of the work through a form right now and would like for it to do some calculations based on selections that are made from a combo box.
I'm using the control source in one place to make a calculation based on the combo box selection.
so I have a text box that has the following in the control source:
=15-[Att_Int]
This works correctly. Whatever number is selected from [Att_Int] is subtracted from 15 and displays in the text box just fine.
So I thought I would try to dig into the Min function to add a bit more automation to this form.
What I am trying to do is find the lowest of the selections from two combo boxes and display them in a text box just like the example above.
In the control source for the new text box I have:
=Min([Att_Rfl] Or [Att_Int])
All it is returning is: -1
The two combo boxes in the current record are currently set at [Att_Rfl]=6 and [Att_Int]=7 so with the desired MIN function the text box should be returning the Att_Rfl score (6).
I'm also trying to do a Max in a similar manner for a different field. Obvously I've got something wrong!
Please note that I know nothing of VB. That's why I'm trying to get it to work through the Control Source, if possible.
Thanks bunches,
Major Yoshi
(using Access 2003) I'm working on a 'little' database for our weekly Battletech/Mechwarrior sessions. It's a character generator. I'm doing most of the work through a form right now and would like for it to do some calculations based on selections that are made from a combo box.
I'm using the control source in one place to make a calculation based on the combo box selection.
so I have a text box that has the following in the control source:
=15-[Att_Int]
This works correctly. Whatever number is selected from [Att_Int] is subtracted from 15 and displays in the text box just fine.
So I thought I would try to dig into the Min function to add a bit more automation to this form.
What I am trying to do is find the lowest of the selections from two combo boxes and display them in a text box just like the example above.
In the control source for the new text box I have:
=Min([Att_Rfl] Or [Att_Int])
All it is returning is: -1
The two combo boxes in the current record are currently set at [Att_Rfl]=6 and [Att_Int]=7 so with the desired MIN function the text box should be returning the Att_Rfl score (6).
I'm also trying to do a Max in a similar manner for a different field. Obvously I've got something wrong!
Please note that I know nothing of VB. That's why I'm trying to get it to work through the Control Source, if possible.
Thanks bunches,
Major Yoshi