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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML code fragment in Form Text Box 1

Status
Not open for further replies.

ThunderGeek

Technical User
Joined
Nov 29, 2004
Messages
38
Location
US
Greetings
I am having a problem putting this HTML code fragment as a default in an Access 2000 form text field;
"><meta name="robots" content="index,follow"><meta http-equiv="content-type" content="text/html;charset=iso-8859-1

Access keeps popping a message box stating "The expression you entered contains invalid syntax".
I know there must be a way to define this fragment as text and not an expression but am not sure how to achieve that goal.
Any help is greatly appreciated
Thanks in advance
TG
 
if you wanted to use it EXACTLY like you have it shown there...use double quotes where you have the single quotes INSIDE the string.

Code:
"><meta name=""robots"" content=""index,follow""><meta http-equiv=""content-type"" content="text/html;charset=iso-8859-1"


-Pete
 
I missed one....but i think you get the point



-Pete
 
Works great!
Thank you for the quick response.
TG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top