ORACLE and IsNumeric..... 
Author Message
 ORACLE and IsNumeric.....

Cheers for reading this post! I'm having a long line of problems trying to
get my application, developed for MS Access to work with  a new (identical)
Oracle DB.

A section of the code performs a calculation upon numeric field values. When
I tried using my new Oracle database I got a "Type Mismatch" error. I tried
a test...

If IsNumeric(north) Then
 Response.Write "NORTH IS NUMERIC"
Else
 Response.Write "NORTH IS NOT NUMERIC"
End If

Basically.....The fields with NUMBER datatypes in Oracle aren't being
recognised as such. Using CInt isn't an option....it takes too long. Has
anyone else had such a problem? It's a mystery (and I'm pulling my hair
out), as there's only one numeric datatype with Oracle, so it's not as if
I've chosen then wrong datatype.

Any ideas?

thanks

Alex



Sat, 17 Jul 2004 00:29:20 GMT  
 ORACLE and IsNumeric.....
Try:
response.write north
to see what is being returned.
For example, is it 45 or "45".


Quote:
> Cheers for reading this post! I'm having a long line of problems trying to
> get my application, developed for MS Access to work with  a new
(identical)
> Oracle DB.

> A section of the code performs a calculation upon numeric field values.
When
> I tried using my new Oracle database I got a "Type Mismatch" error. I
tried
> a test...

> If IsNumeric(north) Then
>  Response.Write "NORTH IS NUMERIC"
> Else
>  Response.Write "NORTH IS NOT NUMERIC"
> End If

> Basically.....The fields with NUMBER datatypes in Oracle aren't being
> recognised as such. Using CInt isn't an option....it takes too long. Has
> anyone else had such a problem? It's a mystery (and I'm pulling my hair
> out), as there's only one numeric datatype with Oracle, so it's not as if
> I've chosen then wrong datatype.

> Any ideas?

> thanks

> Alex



Sat, 17 Jul 2004 00:36:53 GMT  
 ORACLE and IsNumeric.....
thanks Raymond

I've just solved the problem....Bizarrely, if the field values in Oracle are
varchar(2), ASP interprets the numbers as numbers, but as explained, if the
field values in Oracle are Numbers, ASP doesn't interpret the numbers as
numbers!!

cheers again

Alex


Quote:
> Try:
> response.write north
> to see what is being returned.
> For example, is it 45 or "45".



> > Cheers for reading this post! I'm having a long line of problems trying
to
> > get my application, developed for MS Access to work with  a new
> (identical)
> > Oracle DB.

> > A section of the code performs a calculation upon numeric field values.
> When
> > I tried using my new Oracle database I got a "Type Mismatch" error. I
> tried
> > a test...

> > If IsNumeric(north) Then
> >  Response.Write "NORTH IS NUMERIC"
> > Else
> >  Response.Write "NORTH IS NOT NUMERIC"
> > End If

> > Basically.....The fields with NUMBER datatypes in Oracle aren't being
> > recognised as such. Using CInt isn't an option....it takes too long. Has
> > anyone else had such a problem? It's a mystery (and I'm pulling my hair
> > out), as there's only one numeric datatype with Oracle, so it's not as
if
> > I've chosen then wrong datatype.

> > Any ideas?

> > thanks

> > Alex



Sat, 17 Jul 2004 16:45:47 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. IsNumeric gone bad? Calling all IsNumeric experts...

2. Connecting to Oracle thru Oracle OLE DB Provider(OraOLDDB.Oracle)

3. VB isnumeric issue

4. VBA isnumeric question

5. Problem with IsNumeric()?

6. Isnumeric Question

7. Something better than IsNumeric

8. IsNumeric Function Error

9. IsNumeric CLR version

10. Does IsNumeric work differently now?

11. Simple problem with visual basic: Isnumeric and no text

12. Isnumeric replacement?

 

 
Powered by phpBB® Forum Software