Forums
This topic is locked
£ apear as ?
Posted 17 Feb 2005 16:24:40
1
has voted
17 Feb 2005 16:24:40 adam partridge posted:
in my access dbase i have a price field however when i call the field it displays the pound sign as a ?is there a replace i can do so it displays as a £ or another way around it
Replies
Replied 18 Feb 2005 12:39:32
18 Feb 2005 12:39:32 Vince Baker replied:
<%=Replace(recordset.fields.item("fieldname".value, "?", "£"%>
Regards
Vince Baker
<strong>DMX Zone Manager</strong>
[VBScript | ASP | HTML | CSS | SQL | Oracle | AS400 | ERP Logic | Hosting]
Regards
Vince Baker
<strong>DMX Zone Manager</strong>
[VBScript | ASP | HTML | CSS | SQL | Oracle | AS400 | ERP Logic | Hosting]
Replied 21 Feb 2005 13:48:42
21 Feb 2005 13:48:42 adam partridge replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
<%=Replace(recordset.fields.item("fieldname".value, "?", "£"%>
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
ive tried that and it still apears as a ? aqny other suggestions ?
<%=Replace(recordset.fields.item("fieldname".value, "?", "£"%>
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
ive tried that and it still apears as a ? aqny other suggestions ?
Replied 21 Feb 2005 17:44:56
21 Feb 2005 17:44:56 Vince Baker replied:
can you post the code from your recordset just so I can check that....
Regards
Vince Baker
<strong>DMX Zone Manager</strong>
[VBScript | ASP | HTML | CSS | SQL | Oracle | AS400 | ERP Logic | Hosting]
Regards
Vince Baker
<strong>DMX Zone Manager</strong>
[VBScript | ASP | HTML | CSS | SQL | Oracle | AS400 | ERP Logic | Hosting]
Replied 22 Feb 2005 16:26:33
22 Feb 2005 16:26:33 adam partridge replied:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/hottubs.asp" -->
<%
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset"
Recordset1.ActiveConnection = MM_hottubs_STRING
Recordset1.Source = "SELECT * FROM specialtubs ORDER BY intid DESC"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()
Recordset1_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = -1
Repeat1__index = 0
Recordset1_numRows = Recordset1_numRows + Repeat1__numRows
%>
<%=Replace(recordset.fields.item("fieldname".value, "?", "£"%>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
Replied 22 Feb 2005 17:25:50
22 Feb 2005 17:25:50 Vince Baker replied:
Adam,
Just to check, where you have the line
<%=Replace(recordset.fields.item("fieldname".value, "?", "£"%>
Do you actually have your recordset1 name where recordset is written and your fieldname where ("fieldname" is written?
Regards
Vince Baker
<strong>DMX Zone Manager</strong>
[VBScript | ASP | HTML | CSS | SQL | Oracle | AS400 | ERP Logic | Hosting]
Just to check, where you have the line
<%=Replace(recordset.fields.item("fieldname".value, "?", "£"%>
Do you actually have your recordset1 name where recordset is written and your fieldname where ("fieldname" is written?
Regards
Vince Baker
<strong>DMX Zone Manager</strong>
[VBScript | ASP | HTML | CSS | SQL | Oracle | AS400 | ERP Logic | Hosting]
Replied 24 Feb 2005 18:24:20
24 Feb 2005 18:24:20 adam partridge replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Adam,
Just to check, where you have the line
<%=Replace(recordset.fields.item("fieldname".value, "?", "£"%>
Do you actually have your recordset1 name where recordset is written and your fieldname where ("fieldname" is written?
Regards
Vince Baker
<strong>DMX Zone Manager</strong>
[VBScript | ASP | HTML | CSS | SQL | Oracle | AS400 | ERP Logic | Hosting]
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
apologies my fault the correct line is <%=Replace(Recordset1.fields.item("strprice".value, "?", "£"%>
Adam,
Just to check, where you have the line
<%=Replace(recordset.fields.item("fieldname".value, "?", "£"%>
Do you actually have your recordset1 name where recordset is written and your fieldname where ("fieldname" is written?
Regards
Vince Baker
<strong>DMX Zone Manager</strong>
[VBScript | ASP | HTML | CSS | SQL | Oracle | AS400 | ERP Logic | Hosting]
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
apologies my fault the correct line is <%=Replace(Recordset1.fields.item("strprice".value, "?", "£"%>