O
oxicottin
Hello I want to divide two rows of text boxes together. These text boxes have
time in them and the result I want is a %. The formula I was going to use is
=[Text1]/[Text2]&"% But it will not work because some of the text boxes will
be blank and this will give me an error. I had somone help me witha module
for something simular it went like this:
Public Function Nnz(TestValue As Variant) As Single
'*** Converts non-numeric values to zero ***
If Not (IsNumeric(TestValue)) Then
Nnz = 0
Else
Nnz = TestValue
End If
End Function
This was so I can add a row of text together and if one of the boxes were
empty it would still add them and give me a total! He said I can use it for
this also but as an IIF statement but I cant figure it out? The boxes I need
to divide by are: Field41,Field44,Field45,Field46,Field47,Field48,Field49
divided by Text77,Text79,Text80,Text82,Text84,Text86,Text87
Thanks for the help this is my first database and im new to access!
time in them and the result I want is a %. The formula I was going to use is
=[Text1]/[Text2]&"% But it will not work because some of the text boxes will
be blank and this will give me an error. I had somone help me witha module
for something simular it went like this:
Public Function Nnz(TestValue As Variant) As Single
'*** Converts non-numeric values to zero ***
If Not (IsNumeric(TestValue)) Then
Nnz = 0
Else
Nnz = TestValue
End If
End Function
This was so I can add a row of text together and if one of the boxes were
empty it would still add them and give me a total! He said I can use it for
this also but as an IIF statement but I cant figure it out? The boxes I need
to divide by are: Field41,Field44,Field45,Field46,Field47,Field48,Field49
divided by Text77,Text79,Text80,Text82,Text84,Text86,Text87
Thanks for the help this is my first database and im new to access!