Please help. I have an ASP page posting data into an access database. One of the fields is a currency field.
On my local development server if I enter a £ sign it works fine. The access database field is set to currency and the value is stored. On the live server I get an error if I include the £ sign. I think it might be because the server is not setup for the UK locale as the hosting company is based in Germany.
Is there a way to change the locale for my web site within my code?
OR
I use an isNumeric validation code to ensure its numeric but this allows the £ sign. Is there a way to disallow the £ sign.
The validation code is
function isPURPRICE(val)
if len(val.value)>0 then
if isNumeric(val.value) then
isPURPRICE= true
else
msgbox "PURCHASE PRICE - PLEASE USE ONLY NUMBERS E.G. £50,000 = 50000"
val.select
isPurprice = false
end if
else
isPurprice = true
END IF
end function
Thanks
Matthew Wilde
matthew@ukwebsite.com
On my local development server if I enter a £ sign it works fine. The access database field is set to currency and the value is stored. On the live server I get an error if I include the £ sign. I think it might be because the server is not setup for the UK locale as the hosting company is based in Germany.
Is there a way to change the locale for my web site within my code?
OR
I use an isNumeric validation code to ensure its numeric but this allows the £ sign. Is there a way to disallow the £ sign.
The validation code is
function isPURPRICE(val)
if len(val.value)>0 then
if isNumeric(val.value) then
isPURPRICE= true
else
msgbox "PURCHASE PRICE - PLEASE USE ONLY NUMBERS E.G. £50,000 = 50000"
val.select
isPurprice = false
end if
else
isPurprice = true
END IF
end function
Thanks
Matthew Wilde
matthew@ukwebsite.com