Solved

Tying to insert quotes

Posted on 2006-06-12
2
166 Views
Last Modified: 2010-04-23
Hi there I am trying to use the following code


objStartPt.Insert(vbCr + "Dim sqlCmd As New SqlCommand("SaveCustomer", conn)")

but it does not like the   "SaveCustomer"  because of the quotes and i need those to be written in literatlly when the code runs.

is there a way round this

many thanks

davoman
0
Comment
Question by:davoman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 16884071
Hi davoman,

Put 2:
> objStartPt.Insert(vbCr + "Dim sqlCmd As New SqlCommand(""SaveCustomer"", conn)")


Cheers!
0
 
LVL 1

Author Comment

by:davoman
ID: 16884078
DOH!!!


that easy

cheers dude easy 500 for ya
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question