How to enter algebra formula?

Heidi21001

New Member
Joined
Apr 13, 2010
Messages
1
I am new to access 2003 and I've been trying to add a formula to an existing access form.

The Formula I need solved is

(((L x R)(/A))(/12))=F

L - Labels
R - Repeat
A - Across
F - Footage

I want to be able to enter the various numbers and have it solve what's missing. I always have the repeat and across, but I need to figure Labels or Footage (depending on what info is given to me)

Is this possible in access?
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Definately possible. Let me wave some air code around...

Public function CalcFootage(L as long, R as long, A as long) as single
CalcFootage=(((L x R)(/A))(/12))
End Function

Public Function CalcLabels(R as long, A as long, F as single) as single
CalcLabels=[too early for me to figure out how to solve for L, sorry]
end function

Then you would call the proper fx as necessary

hth,

Rich
 
Upvote 0
Now that I think about it I didn't really answer your question. You can write a wrapper fx that takes all four inputs and runs with it.

Public Function CalcMyStuff(R as long, A as long, Optional L as long=0, Optional F as single=0) as single

If L>0 then
CalcMystuff=CalcFootage(l,r,a)
elseif F>0 then
CalcMyStuff=CalcLabels(r,a,f)
else
CalcMyStuff=0
end if
End function
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top