Guest_imported
New member
- Jan 1, 1970
- 0
Im trying to debug a Query that has symbol syntex im not familiar with any help would be appreciated:
The query its-self is a string variable and is quite long so i will try to get to the point where the error may be occuring with trying to provide enough of the statment for help.
strReadData = "Select CastData.castnumber, castdata.StartTime, "+ _
"CastData.EndcastTime FROM claytype INNER JOIN " + _
"(Drillbittype INNER JOIN castdata ON (drillbittype,DrillBitID=castdata.drillbittype)" +_
"AND (Drillbittype.drillbitID= CastData.DrillBitType)) ON ClayType.ClayID = " + _
"CastData.ClayType WHERE (((CastData.CastNumber)=" & strCastNum & AND
((Drillbittype.DrillBitID)= " [castdata] ! [DrillBittype]) AND ((ClayType.clayID) = [CastData] ! [ClayType]));"
This is someone elses code and im not familiar with the ! statment for what SQL extention this may be. The syntx error seems to be in the [ ] ! [ ] part of the statement.
The query its-self is a string variable and is quite long so i will try to get to the point where the error may be occuring with trying to provide enough of the statment for help.
strReadData = "Select CastData.castnumber, castdata.StartTime, "+ _
"CastData.EndcastTime FROM claytype INNER JOIN " + _
"(Drillbittype INNER JOIN castdata ON (drillbittype,DrillBitID=castdata.drillbittype)" +_
"AND (Drillbittype.drillbitID= CastData.DrillBitType)) ON ClayType.ClayID = " + _
"CastData.ClayType WHERE (((CastData.CastNumber)=" & strCastNum & AND
((Drillbittype.DrillBitID)= " [castdata] ! [DrillBittype]) AND ((ClayType.clayID) = [CastData] ! [ClayType]));"
This is someone elses code and im not familiar with the ! statment for what SQL extention this may be. The syntx error seems to be in the [ ] ! [ ] part of the statement.