473,396 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Re TYpe mismatch

Hello, i an not sure if this is the rihgt place for this question, if not
could someome point me to the correct newsgroup please.

For a number of years i have been designing sites and hosting them using a
reseller account. For various reasons i am now going over to VPS server
using Windows Server 2003 with iis 6 installed. This is a large leap for me
and its getting me quite confused.

One problem i have is i am getting this error when testing a page

Provider error '80020005'

Type mismatch

The line in question is a currency field and the data that it is attempting
to be written is £200.00, if i try it without the £ sign it works fine,
what i dont understand is that it works fine on the existing site with or
without the £ sign.

Can anybody point me in the right direction, i dont really want to have to
write code to remove the £ sign if thers no need too.

Thanks in advance

Paul
Nov 8 '05 #1
5 2944

"Paul" <pc****@gmail.com> wrote in message
news:Xn****************************@207.46.248.16. ..
Hello, i an not sure if this is the rihgt place for this question, if not
could someome point me to the correct newsgroup please.

For a number of years i have been designing sites and hosting them using a
reseller account. For various reasons i am now going over to VPS server
using Windows Server 2003 with iis 6 installed. This is a large leap for me and its getting me quite confused.

One problem i have is i am getting this error when testing a page

Provider error '80020005'

Type mismatch

The line in question is a currency field and the data that it is attempting to be written is £200.00, if i try it without the £ sign it works fine,
what i dont understand is that it works fine on the existing site with or
without the £ sign.

Can anybody point me in the right direction, i dont really want to have to
write code to remove the £ sign if thers no need too.


Regional settings at the server perhaps? The currency settings can be
adjusted in the Regional Options on the Control Panel.
Nov 8 '05 #2
Hi Thanks for that quick reply, it sounded logical but ubfortunately
after the settings to the UK its still producing the same problem on
this machine.

*** Sent via Developersdex http://www.developersdex.com ***
Nov 8 '05 #3
I think the right way would be to do it without the £ sign anyway. A simple
"Replace()" function could strip it out of the input, there is no large
amount of code required to do that. I never consider including the $ for US
currency,...the databse already displays it in the field based on the
Datatype of the field,...the only thing you put in is the number.

--
Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com
-----------------------------------------------------
Understanding the ISA 2004 Access Rule Processing
http://www.isaserver.org/articles/IS...cessRules.html

Microsoft Internet Security & Acceleration Server: Guidance
http://www.microsoft.com/isaserver/t...dance/2004.asp
http://www.microsoft.com/isaserver/t...dance/2000.asp

Microsoft Internet Security & Acceleration Server: Partners
http://www.microsoft.com/isaserver/partners/default.asp
-----------------------------------------------------

"Paul Bromley" <pa**@pcbinternet.co.uk> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi Thanks for that quick reply, it sounded logical but ubfortunately
after the settings to the UK its still producing the same problem on
this machine.

*** Sent via Developersdex http://www.developersdex.com ***

Nov 8 '05 #4

"Paul Bromley" <pa**@pcbinternet.co.uk> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi Thanks for that quick reply, it sounded logical but ubfortunately
after the settings to the UK its still producing the same problem on
this machine.


What if you were to test the string with IsNumeric() or tried a conversion
with CDbl()? You might have to shave off the currency symbol to process it
as a number.
Nov 8 '05 #5
"Phillip Windell" <@.> wrote in
news:#c**************@TK2MSFTNGP12.phx.gbl:
I think the right way would be to do it without the £ sign anyway. A
simple "Replace()" function could strip it out of the input, there is
no large amount of code required to do that. I never consider
including the $ for US currency,...the databse already displays it in
the field based on the Datatype of the field,...the only thing you put
in is the number.


Yes i agree with you, that to use the replace function would solve the
problem, but as stated in my original post, i am trying to have to avoid
rewriting code. If it was just this 1 page and 1 site thats exactly what i
would have done, but there are numerours sites that i would have to do that
in, and if i missed any out, sites that are working now may stop working
properly, thats why i am trying to avoid that route. Especially as the
sites are working fine on the other server, surely it has to be down to a
setting or something like that.
Nov 9 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Arun Wadhawan | last post by:
Hello MY SQL Server is causing me this problem : Microsoft VBScript runtime error '800a000d' Type mismatch: 'ident' >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> I am getting from...
1
by: LJgrnl | last post by:
I've got a type mismatch error that's driving me nutty. Variable blnNoData has the initial value False. If a recordset comes back empty (both .EOF and ..BOF are true) then blnNoData is set to...
1
by: Mark | last post by:
Hi - I tried this in VS.Net, and also in the Web Matrix code below: - but I am getting a type mismatch error. The sql statement runs perfectly from within the Access Query Designer. Can anyone...
7
by: middletree | last post by:
I've been messing with this for hours, and have been to various sites, including Aaron's site, and am truly stumped. The short version: in SQL Server, the 4 fields in question are datetime. I...
4
by: Mike | last post by:
I am getting a type mismatch error when I do a bulk insert. ---Begin Error Msg--- Server: Msg 4864, Level 16, State 1, Line 1 Bulk insert data conversion error (type mismatch) for row 1, column...
3
by: amitbadgi | last post by:
I am getting teh following error while converting an asp application to asp.net, Exception Details: System.Runtime.InteropServices.COMException: Type mismatch. Source Error: Line...
1
by: Brett | last post by:
I have a form that calls a method within a DLL. By clicking a button on the form, the DLL is instantiated and the SaveOutlookMessage() method invoked. The DLL code copies messages from Outlook to...
6
by: Howard Kaikow | last post by:
I'm doing a VB 6 project in which I am trying to protect against type mismatch errors. Is the process any different in VB .NET? Here's what I'm doing in VB 6. I have an ActiveX DLL. The...
5
by: kjworm | last post by:
Hello Everyone, I have been fighting with a type mismatch error for many hours today and I can't seem to find what the problem is. Hopefully it is more than a missing apostrophe! I have isolated...
19
by: Lysander | last post by:
I have written a query that takes three integers representing day,month and year, forms a date from them and compares this date to the date the record was entered and returns any records where the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.