Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

formatting error

Status
Not open for further replies.

evr72

MIS
Dec 8, 2009
265
US
Hello,

I am trying to format a null field so I came up with the code below, it looks ok to me but it is giving me an error

this is my code
Code:
strValue = "<a target=_blank href='[URL unfurl="true"]http://mywebsrv/sales_list.asp?mastertable=Daily&masterkey1="&[/URL] data("tddt") &" '>"("0" & data("Sales"),2) &" </a>"

this is the error I get
Code:
Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: '[string: "'>"]'
 
Use
Code:
" & chr(34) & "

instead instead of throwing the odd single quote here and there.


Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Guessing, but is this what you were going for?
Code:
strValue = "<a target=_blank href='[URL unfurl="true"]http://mywebsrv/sales_list.asp?mastertable=Daily&masterkey1="&[/URL] data("tddt") &" '>"[highlight #FCE94F] & Right[/highlight]("0" & data("Sales"),2) &" </a>"
 
ChrisHirst,

Thanks, would this be instead of the
Code:
"0" &

Thanks!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top