D
David Sampson
I have stumbled (literally) on a solution for calculating the result of a formfield using the results of 2 others:
If aDocForm("SupInfBox").Result = "inf" Then
aDocForm("IsoSuggest").Result = ((aDocForm("LLWireSetup").Result - aDocForm("ULWireSetup").Result) / 2) + aDocForm("ULWireSetup").Result
End If
and it works.
However, when I change simply the + to a -
If aDocForm("SupInfBox").Result = "sup" Then
aDocForm("IsoSuggest").Result = ((aDocForm("LLWireSetup").Result + aDocForm("ULWireSetup").Result) / 2) - aDocForm("ULWireSetup").Result
End If
I get the error
"Type Mismatch" related to the second expression.
Can anyone tell me why this doesn't work?
Thanks
David Sampson
Submitted via EggHeadCafe - Software Developer Portal of Choice
ADO SHAPE Command - Producing Hierarchical Recordsets
http://www.eggheadcafe.com/tutorial...36-f10d970a8758/ado-shape-command--produ.aspx
If aDocForm("SupInfBox").Result = "inf" Then
aDocForm("IsoSuggest").Result = ((aDocForm("LLWireSetup").Result - aDocForm("ULWireSetup").Result) / 2) + aDocForm("ULWireSetup").Result
End If
and it works.
However, when I change simply the + to a -
If aDocForm("SupInfBox").Result = "sup" Then
aDocForm("IsoSuggest").Result = ((aDocForm("LLWireSetup").Result + aDocForm("ULWireSetup").Result) / 2) - aDocForm("ULWireSetup").Result
End If
I get the error
"Type Mismatch" related to the second expression.
Can anyone tell me why this doesn't work?
Thanks
David Sampson
Submitted via EggHeadCafe - Software Developer Portal of Choice
ADO SHAPE Command - Producing Hierarchical Recordsets
http://www.eggheadcafe.com/tutorial...36-f10d970a8758/ado-shape-command--produ.aspx