Hello…
I’m working on a VB script that when ran would take a field (LDesc – memo) in table T_Agile and move the data to an alternate table T_AgileRSC (same structure). This script would also replace certain characters or character strings in the LDesc field that are defined in another table (T_ChrRepl – includes SoughtChar, and ReplaceChar along with if it is Ascii code or Character (boolean)). The T_ChrRepl–>SoughtChar and ReplaceChar can include multiple replacement strings seperated by comma’s (i.e. SoughtChar Chr(162),Chr(163) would be replaced by ReplaceChar Chr(13),Chr(10)). I can get everything to work correctly when using character strings, but can’t when using Ascii code. It treats the Ascii code as a literal.
Below is the line of code I’m having problems with. My question is… Is their anyway to have the below SC_String use Chr(162) & Chr(163) instead of indicating “Chr(162) & Chr(163)” quoted?
If this isn’t enough information, I can attach the complete code for reference.
rstAgileRSC![LDesc] = Replace(rstAgileRSC![LDesc], SC_String, RC_String)
RC_String and SC_String is a string compelated from a loop further up in the script.
Thanks in advance for any help.