string


VBA: Escape double quotes around a single character within a string


I am facing a problem that I hope I can get some help in this forum. I am retrieving values from a SQL Server data-table, loading them into an array to then use the array to add the items to a drop-down-list.
The problem that I have is that one of the values contains double quotes around one of the characters of the string.
This is the value: "A" Side Music, LLC
Because of the double quotes around the A, that value is not included in the drop-down-list, all other values are present.
The code that I have tried is this piece:
For intRecord = 0 To UBound(arrRecords, 2)
Name.AddItem (Chr(34) & arrRecords(0, intRecord) & Chr(34))
Next intRecord
Is there any way someone could help me figure how to work around this problem?
Many thanks
UPDATE
I am including a screen shot of a watch I added to demonstrate that the value is being retrieved.
MSAccess needs single-quotation marks around the string when entering information into a ListBox:
Name.AddItem "'" & arrRecords(0, intRecord) & "'"

Related Links

I am trying to display variable names and num2str representations of their values in matlab
Search String in Cell Efficient Way
Longest Subsequence with all occurrences of a character at 1 place
how to convert a cell to string in matlab
No startswith,endswith functions in Go?
Is there a standard code in that can format phone numbers into some “standard format”
[XSLT]: Remove string in XSLT
Concatenate numerical values in a string
grep without string
hash different strings to same result
How to split a string into a list of words in TCL, ignoring multiple spaces?
How to remove accent from string in WP7
Geting User Location and using coordinates as a string outside the didUpdateLocations
Comparing strings for their similarities?
Shell scripting help needed
How to parse a milliseconds-since-epoch timestamp string in Go?

Categories

HOME
xml
grok
delphi-7
deep-learning
battery
devise
alarm
opendj
carousel
google-apps
dojo
emscripten
google-admin-sdk
data-visualization
boto3
emoji
gkturnbasedmatch
selenium-ide
symmetricds
enterprise-architect
screen-readers
internationalization
chargify
foreign-keys
monit
dynamically-generated
interbase
appirater
outliers
progress-bar
tizen-tv
sqsh
kudu
wacom
android-sugarorm
card.io
fossil
sharding
openerp-7
apic
salesforce-communities
nohup
loading
magento-1.9.3
doc
avcapturedevice
importerror
signal-strength
lampp
posixct
podscms
scalding
flac
cd-burning
django-1.10
polyline
uicolor
greatest-n-per-group
observablecollection
jtwig
gcloud-ruby
sklearn-pandas
toast
highland.js
jbase
inf
themoviedb-api
xenomai
jdi
batik
jsvc
graphics2d
avahi
telepat
cakephp-2.7
umlgraph
delayed-execution
deform
webfinger
ss7
mintty
draw2d-js
ecslidingviewcontroller
high-resolution
ora-06550
eclipse-kepler
kendo-dataviz
nebula
node-blade
css-reset
dolby-audio-api
octal
cardreader
mkv
patricia-trie
zope.interface
faye
lambdaj
multiplexing
fitbounds
agility.js
exponentiation
ie-compatibility-mode
nstokenfield
sqlobject

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App