kosala1981
New member
- Local time
- Tomorrow, 06:54
- Joined
- Apr 5, 2007
- Messages
- 9
In the following statement i tried to send BeginningDate(textbox value) and EndingDate(txtbox value) to the SQL stmnt but it gave an error saying "Type Mismatch" even though i used CDate method. answer for this problem is greatly appreciated......
"WHERE Project.tProjTitle='" + Trim(cboProjectTitle) + "' AND Project.nProjId=Indicator.nProjId AND Indicator.tIndicatorName='" + cboIndicator + "' AND Indicator.nIndicatorId=IndicatorData.nIndicatorId AND Region.nRegionId=IndicatorData.nRegionId AND Institute.nInstituteId=IndicatorData.nInstituteId AND" + _
"IndicatorData.EndingDate Between '" + CDate(BeginningDate) + "' AND '" + CDate(EndingDate) + "' " + _"GROUP BY IndicatorData.nRegionId, " + Trim(Replace(cboRows, "_", ".")) + " "
"WHERE Project.tProjTitle='" + Trim(cboProjectTitle) + "' AND Project.nProjId=Indicator.nProjId AND Indicator.tIndicatorName='" + cboIndicator + "' AND Indicator.nIndicatorId=IndicatorData.nIndicatorId AND Region.nRegionId=IndicatorData.nRegionId AND Institute.nInstituteId=IndicatorData.nInstituteId AND" + _
"IndicatorData.EndingDate Between '" + CDate(BeginningDate) + "' AND '" + CDate(EndingDate) + "' " + _"GROUP BY IndicatorData.nRegionId, " + Trim(Replace(cboRows, "_", ".")) + " "