Stefan
Mon Oct 24 09:37:39 CDT 2005
Are you sure all 3 fields are at least an integer field and none of them can ever be empty or null
- or try to force a conversion to Integer using Cint
InAcademic =Cint(rsDataSet("In_Academic"))
Check them (where "var" is your actual variable name - say "FinancialAid") with either
Response.write TypeName("var")
or
Response.write VarType("var")
--
_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________
"Red_Star20" <RedStar20@discussions.microsoft.com> wrote in message news:3788BFFA-0570-4C96-BDE0-79572C46BC35@microsoft.com...
|I am getting this type mismatch error and not sure why?!
| The last line is the one causing the error... I am trying to get those
| values from an Oracle database and add/subtract their values.
|
| <% InAcademic =rsDataSet("In_Academic")
| InNonAcademic =rsDataSet("In_Non_Academic")
| FinancialAid =rsDataSet("Financial_Aid")
| %>
| <% AmountDue = InAcademic + InNonAcademic - FinancialAid %>
|