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

How to add number in feature method name in Spock framework
Finding cell in a row that matches a drop down list
Remove \ from String
String use on another class
Passing string from view controller to file in Swift
Using VBA, split string and set first item only to variable?
Matlab save doesn't detect char array as string [duplicate]
Select data from char position to the next
How to assign values to a string? [duplicate]
beginner: c++ code: strings are being duplicated when printed
print variable in string using php
Dynamicaly referencing class based on a string variable
Tcl. Replace string in file
How to get substring after last occurrence of character in string: Swift IOS
How do I force a textbox in an Access form to skip to the next textbox when a specific character is entered?
How can I easily show that string index order when calculating Levenshtein distance don't matter for strings of the same length?

Categories

HOME
android
microsoftgraph
paraview
spark-streaming
redux-form
pda
serialization
socket.io
grafana
nested-if
python-multithreading
vert.x
webix
flume
owin
text-mining
activecollab
3nf
parameter-passing
squashfs
gulp-watch
beta
data.stackexchange.com
ms-access-web-app
linked-data
winexe
sqlpackage
ntp
custom-controls
dumpbin
android-sugarorm
hreflang
hard-drive
gnat-gps
instantiation
baidu-map
processwire
video-capture
salesforce-communities
xcode7.3
jpad
xdocreport
metaprogramming
http-request
angular-http
builder
linter
openrasta
magic-draw
subnet
reshape
mouseleave
monkey
meteor-packages
redistributable
parfor
flex4.6
greatest-n-per-group
observablecollection
query-by-example
ellucian-scribe
findfirst
design-principles
jnlua
assertion
video-player
.bash-profile
rdflib
jquery-forms-plugin
mmwormhole
filesplitting
insight.database
create.js
with-statement
build-script
parallel-testing
functional-java
buffering
radiant
unit-of-work
workitem
node-blade
intersect
patricia-trie
midlet
google-maps-mobile
xcelsius
dataform
presentation-layer
vs-android
jqueryform
aspmenu
entitykey
flvplayback

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