Re: changing txt to number
- From: "Roland Hall" <nobody@nowhere>
- Date: Fri, 22 Apr 2005 14:09:33 -0500
"Jeff" wrote in message news:JuKdnRA3MujknfrfRVn-qw@xxxxxxxxxxxxxxx
:I am using access DB.
: i have a large table that i have aquired, and all the data in the fields
are
: actually txt. unfortunatly, the data is integers stored as txt. the future
: plan, is to redo the DB, and make the fields numeric, but for now, i need
a
: way to retrieve data, and change it to numeric.
:
: so if field cc_callNumbers is a 7.. but the field type is txt, in my asp
: page i can call that as say
:
: var1 = sales_data.fields.item("cc_callNumbers").value
:
: that value returns a txt 7, but i need to convert it to a number 7, so i
can
: do math with the data. is this possible?
As Ray said....
var1 = CInt(sales_data.fields.item("cc_callNumbers").value)
To verify:
Response.Write typename(var1)
--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
.
- References:
- changing txt to number
- From: Jeff
- changing txt to number
- Prev by Date: Re: ASP pages won't open in browser??? Help.
- Next by Date: Re: ASP pages won't open in browser??? Help.
- Previous by thread: Re: changing txt to number
- Next by thread: Re: changing txt to number
- Index(es):
Relevant Pages
|