1634d Need help printing " double quotes
Sign Up |  Live StatsLive Stats    Articles 37,345| Comments 177,358| Members 19,420, Newest Talia| Online 444
Home Contact
 (Forgotten?): 
    Sikhism
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Click Here to Register/Sign Up Daily Hukamnama Member Blogs Downloads Website Navigation Help Fonts Tags

Need help printing " double quotes

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 115 USD (23%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
Interfaith Forum 2011 - "Religious" Principles and "Spiritual" Development Tejwant Singh Sikh Sikhi Sikhism 7 28-Apr-2012 07:05 AM
Secret Pakistan: "Double Cross" a BBC Documentary-HD Full rajneesh madhok South Asia 0 28-Jan-2012 23:49 PM
Ten Year Wait for "Akhand Path" at "Dukh Bhanjani Beri," Golden Temple kds1980 General Discussion 10 21-Oct-2011 22:18 PM
War over Private Printing of "Birs" Intensifies spnadmin Controversies 2 09-Jul-2011 20:37 PM
Double sided printing Kjell Forssen Information Technology 0 28-Jul-2006 08:31 AM


Tags
double, help, need help printing, printing, quot, quotes
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:31 AM
James's Avatar James
Guest
 
Posts: n/a
   
   
Need help printing " double quotes

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
I've got the following code... I need the number to be in "double
quotes", not 'single quotes'

Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/12708-need-help-printing-double-quotes.html
so it will look like this when it prints:

UPDATE TableName SET ColumnName =
'x'+Right(ColumnName,Len(ColumnName)-1) WHERE (ColumnName=
"021615039");


any ideas? here's the code:

Option Compare Database

Public Sub buildSQL()
Open "C:\UpdateUSAAID\1.txt" For Input As #1
Open "C:\UpdateUSAAID\excludeListSQL.txt" For Output As #2
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12708

Do While Not EOF(1)

Line Input #1, excludeMember

Print #2, "UPDATE TableName SET ColumnName =
'x'+Right(ColumnName,Len(ColumnName)-1) WHERE (ColumnName = '" &
excludeMember & "');"


Loop
Close #1
Close #2
End Sub



Thanks!



Got anything to share on This Topic? Why not share your immediate thoughts/reaction with us! Login Now! or Sign Up Today! to share your views... Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:31 AM
Roger Carlson's Avatar Roger Carlson
Guest
 
Posts: n/a
   
   
Re: Need help printing " double quotes

Replace each apostrophe with TWO double quotes:

Print #2, "UPDATE TableName SET ColumnName =
'x'+Right(ColumnName,Len(ColumnName)-1) WHERE (ColumnName = """ &
excludeMember & """);"

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L


"James" wrote in message
news:1152209841.073526.227240@s53g2000cws.googlegr oups.com...
> I've got the following code... I need the number to be in "double
> quotes", not 'single quotes'
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12708
>
> so it will look like this when it prints:
>
> UPDATE TableName SET ColumnName =
> 'x'+Right(ColumnName,Len(ColumnName)-1) WHERE (ColumnName=
> "021615039");
>
>
> any ideas? here's the code:
>
> Option Compare Database
>
> Public Sub buildSQL()
> Open "C:\UpdateUSAAID\1.txt" For Input As #1
> Open "C:\UpdateUSAAID\excludeListSQL.txt" For Output As #2
>
> Do While Not EOF(1)
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12708
>
> Line Input #1, excludeMember
>
> Print #2, "UPDATE TableName SET ColumnName =
> 'x'+Right(ColumnName,Len(ColumnName)-1) WHERE (ColumnName = '" &
> excludeMember & "');"
>
>
> Loop
> Close #1
> Close #2
> End Sub
>
>
>
> Thanks!
>



Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:31 AM
James's Avatar James
Guest
 
Posts: n/a
   
   
Re: Need help printing " double quotes

I figured it out, thanks though.... code looks like this in case you
care.
Print #2, "UPDATE TableName SET ColumnName =
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12708
'x'+Right(ColumnName,Len(ColumnName)-1) WHERE (ColumnName = '""" &
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12708
excludeMember & "'"");"

James wrote:
> I've got the following code... I need the number to be in "double
> quotes", not 'single quotes'
>
> so it will look like this when it prints:
>
> UPDATE TableName SET ColumnName =
> 'x'+Right(ColumnName,Len(ColumnName)-1) WHERE (ColumnName=
> "021615039");
>
>
> any ideas? here's the code:
>
> Option Compare Database
>
> Public Sub buildSQL()
> Open "C:\UpdateUSAAID\1.txt" For Input As #1
> Open "C:\UpdateUSAAID\excludeListSQL.txt" For Output As #2
>
> Do While Not EOF(1)
>
> Line Input #1, excludeMember
>
> Print #2, "UPDATE TableName SET ColumnName =
> 'x'+Right(ColumnName,Len(ColumnName)-1) WHERE (ColumnName = '" &
> excludeMember & "');"
>
>
> Loop
> Close #1
> Close #2
> End Sub
>
>
>
> Thanks!


Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:31 AM
Kerry's Avatar Kerry
Guest
 
Posts: n/a
   
   
Re: Need help printing " double quotes

  Donate Today!  
Use the Chr function:
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12708
Print #2, "UPDATE TableName SET ColumnName =
'x'+Right(ColumnName,Len(ColumnName)-1) WHERE (ColumnName = '" &
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12708
Chr(34) &
excludeMember & chr(34) & "');"

James wrote:
> I've got the following code... I need the number to be in "double
> quotes", not 'single quotes'
>
> so it will look like this when it prints:
>
> UPDATE TableName SET ColumnName =
> 'x'+Right(ColumnName,Len(ColumnName)-1) WHERE (ColumnName=
> "021615039");
>
>
> any ideas? here's the code:
>
> Option Compare Database
>
> Public Sub buildSQL()
> Open "C:\UpdateUSAAID\1.txt" For Input As #1
> Open "C:\UpdateUSAAID\excludeListSQL.txt" For Output As #2
>
> Do While Not EOF(1)
>
> Line Input #1, excludeMember
>
> Print #2, "UPDATE TableName SET ColumnName =
> 'x'+Right(ColumnName,Len(ColumnName)-1) WHERE (ColumnName = '" &
> excludeMember & "');"
>
>
> Loop
> Close #1
> Close #2
> End Sub
>
>
>
> Thanks!


Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Active Discussions
Woolwich Killing: The...
Today 07:49 AM
15 Replies, 171 Views
How does Sikhi help you...
Today 07:20 AM
43 Replies, 1,103 Views
US Congress panel passes...
Today 04:22 AM
0 Replies, 32 Views
Harmeet Kaur Took the...
Today 03:40 AM
0 Replies, 43 Views
Is Science a Religion?
Today 03:00 AM
10 Replies, 1,938 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 01:43 AM
319 Replies, 7,684 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Today 00:36 AM
182 Replies, 4,588 Views
Rochester Gurdwara...
Today 00:24 AM
1 Replies, 52 Views
Panjabi Alphabet Resource
Yesterday 23:15 PM
12 Replies, 6,558 Views
Transgenderism ... Right...
Yesterday 22:55 PM
30 Replies, 1,364 Views
Biography of a Scholar:...
Yesterday 22:53 PM
1 Replies, 61 Views
Dusting The Web
Yesterday 22:25 PM
0 Replies, 36 Views
How Pure the Tongue? New...
Yesterday 21:29 PM
0 Replies, 53 Views
Stockholm riots throw...
Yesterday 21:14 PM
1 Replies, 38 Views
Biography of a Scholar:...
Yesterday 18:59 PM
2 Replies, 168 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 09:22 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.39172 seconds with 32 queries
0