In an earlier post, rac2 and PHV helped me with the SQL format example.
This worked fine until I got to aEMPLID valued O'Shane (i.e. apostrophe embedded in the name).
I do have a function through which I run my string input. It checks for a null value, the word "null" (due to uncleansed data from another system) among other machinations. Is there something I could code into this function to take care of my embedded apostrophe problem?
(I do have a workaround that involves substituting a dollar sign for the apostrophe before posting, and reversing it upon retrieval, but that strikes me as having a high "stink" factor)
Regards,
Grnadpa Brian
Code:
sqlOut = "INSERT INTO tryit (myID) VALUES ('" & aEMPLID & "')"
This worked fine until I got to aEMPLID valued O'Shane (i.e. apostrophe embedded in the name).
I do have a function through which I run my string input. It checks for a null value, the word "null" (due to uncleansed data from another system) among other machinations. Is there something I could code into this function to take care of my embedded apostrophe problem?
(I do have a workaround that involves substituting a dollar sign for the apostrophe before posting, and reversing it upon retrieval, but that strikes me as having a high "stink" factor)
Regards,
Grnadpa Brian