G
Guest
I understand that in Microsoft Access, functions written in Visual Basic can
do wonderful things. This is not one of the requests. I have a formula, a
mathematical function that needs to be applied to multiple variables in a
specific query. The formula is a variation of the Bureau of Public Roads
Speed to Demand function. It contains about five constants and the formula is
complicated enough that I'd like to be able to treat it as a function where
I can plug in a few parameters and have it spit out the formula result.
B/(1+a*[(C+2*D*F)/(G*H*J*u)]^y
I'm going against all mathematical conventions here, but the values in CAPS
are parameters (numbers that change and are based on values of variables
within the database) and the lower case variables are formula constants. I
have successfully entered the formula in Microsoft Excel, but the data is
already in Access, so I'd like to be able to calculate the result in Access.
Congested Speed = BPR(B,C,D,F,G,H,J)
where a = 0.15
u = 0.75
y = 4
I'd rather have the values of a, u and y assigned in the
function before the formula as these values may change at some time.
I assume this is not difficult, but I have been completely unable
to find a coherent explanation of how functions work in Access 2002. The only
reference seems to be a reference in the Build Formula dialog.
Any help is appreciated.
do wonderful things. This is not one of the requests. I have a formula, a
mathematical function that needs to be applied to multiple variables in a
specific query. The formula is a variation of the Bureau of Public Roads
Speed to Demand function. It contains about five constants and the formula is
complicated enough that I'd like to be able to treat it as a function where
I can plug in a few parameters and have it spit out the formula result.
B/(1+a*[(C+2*D*F)/(G*H*J*u)]^y
I'm going against all mathematical conventions here, but the values in CAPS
are parameters (numbers that change and are based on values of variables
within the database) and the lower case variables are formula constants. I
have successfully entered the formula in Microsoft Excel, but the data is
already in Access, so I'd like to be able to calculate the result in Access.
Congested Speed = BPR(B,C,D,F,G,H,J)
where a = 0.15
u = 0.75
y = 4
I'd rather have the values of a, u and y assigned in the
function before the formula as these values may change at some time.
I assume this is not difficult, but I have been completely unable
to find a coherent explanation of how functions work in Access 2002. The only
reference seems to be a reference in the Build Formula dialog.
Any help is appreciated.