PDA

View Full Version : another simple syntax question


gcapp
09-04-2002, 06:27 PM
This is an easy one but I can't figure it out.

I have this code:
<%=rstext("City") & "," & rstext("State") & rstext("Zip")%>

This code produces a line like this:
Buffalo,New York14222

What I need to know in that code above, how do put in spaces so the output will look like this:
Buffalo, (space)New York(space)14222

Real easy I know, but I keep getting a syntax error when I try to alter it.

Any help is appreciated.

Gary

Roy Sinclair
09-04-2002, 07:29 PM
You shouldn't create a new post just to follow up a question you already got an answer to.

This will do the trick:


<%=rstext("City") & ",&amp;nbsp;" & rstext("State") & "&amp;nbsp;" & rstext("Zip")%>