ScottInTexas
05-29-2003, 09:05 PM
I am reading values from a table and using them to supply values from another table. One such value has the abbreviation Mat'l. When I use this in an SQL I get an error because of the '. For example
Select ChartTitle, ValueField, DataOrder, Barcolor FROM Charts WHERE ChartName='" & ChartType & "'"
In this case ChartType has an ' in the name.
Syntax error (missing operator) in query expression 'ChartName='Raw Mat'l Cost''.
ANy hints or tricks?
Select ChartTitle, ValueField, DataOrder, Barcolor FROM Charts WHERE ChartName='" & ChartType & "'"
In this case ChartType has an ' in the name.
Syntax error (missing operator) in query expression 'ChartName='Raw Mat'l Cost''.
ANy hints or tricks?