I have never had this happen to me before but I am trying to insert a string into a SQL statement. However, when I do there is a space that is inserted at the front of the string that I am trying to insert. See below:
"select * from tblDefendants " & _
"where Defendant ='" & Trim(strDef) & "' "
strDef is a string that comes from an ASP.
If I look at the string in the ASP there is no space at the front of the string contained in the page.
Here is the resulting SQL statement:
select * from tblDefendants where Defendant =' AMF INCORPORATED' and caseid = 167
How can I get rid of this extra space?
I am doing all of this in a DLL.
TIA
Nate
"select * from tblDefendants " & _
"where Defendant ='" & Trim(strDef) & "' "
strDef is a string that comes from an ASP.
If I look at the string in the ASP there is no space at the front of the string contained in the page.
Here is the resulting SQL statement:
select * from tblDefendants where Defendant =' AMF INCORPORATED' and caseid = 167
How can I get rid of this extra space?
I am doing all of this in a DLL.
TIA
Nate