Mike,
The + operator is using the default values (string) of the variables and
performing concatenation. Use CSng to convert at least one of the values to
a single, single so that you can use 55.23.
--
Mike -- FrontPage MVP '97-'02
http://www.websunlimited.com
Need to protect your web pages Page Protector Pro
http://www.websunlimited.com/order/P...ro/pagepro.htm
FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
"Mike" <mike4532> wrote in message
news:(E-Mail Removed)...
> I need to add form results before recording them to my dbase. The problem
is
> that the '+' symbol does not function as I would expect it to.
>
> DocumentCopies = 55
> MailCharge = 5
>
> Subtraction, division and multiplication work:
> <% InvoiceTotal = DocumentCopies-Mailcharge %> returns 50
> <% InvoiceTotal = DocumentCopies/Mailcharge %> returns 11
> <% InvoiceTotal = DocumentCopies*Mailcharge %> returns 275
>
> But
> <% InvoiceTotal = DocumentCopies+Mailcharge %> returns 555 (I
> expect 60)
> does not.
>
> Any suggestions?
>
> Mikeal
>
>