G
Guest
I've got a handful of function calls (1 function called 3 times on its own,
and another function called - that's dependant on the first function). When
I run the query, I get prompted 6 times for the 1st function. How can I make
it so I only have to type in the 1st function one time?
My code is simple:
Public Function fvelfactor() As Single
fvelfactor = InputBox("Enter Velocity Factor to use for calculation", "Input
Required")
End Function
Public Function finvfactor(fvel As Single) As Single
finvfactor = 1 - (1 - fvel) / 2
End Function
My first function call in the query looks like this fvelfactor(), while the
call for my 2nd function looks like this finvfactor(fvelfactor()).
Thank you!
Derek
and another function called - that's dependant on the first function). When
I run the query, I get prompted 6 times for the 1st function. How can I make
it so I only have to type in the 1st function one time?
My code is simple:
Public Function fvelfactor() As Single
fvelfactor = InputBox("Enter Velocity Factor to use for calculation", "Input
Required")
End Function
Public Function finvfactor(fvel As Single) As Single
finvfactor = 1 - (1 - fvel) / 2
End Function
My first function call in the query looks like this fvelfactor(), while the
call for my 2nd function looks like this finvfactor(fvelfactor()).
Thank you!
Derek