Mucho les agradecería que me ayudaran a resolver este problema.
Tengo este código:
sql = "SELECT * FROM TecnicosHabilitados WHERE RFCTecnico = '"& RFCTecnico &"' and FechaHabilitacion = "& FechaHabilitacion &""
FechaHabilitacion la estoy construyendo con:
FechaHabilitacion = MES&"/"&DIA&"/"&year(cdate(FechaHabilitacion_llega))
Me manda el siguiente error:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E07)
[Microsoft][ODBC SQL Server Driver][SQL Server]The conversion of char data type to smalldatetime data type resulted in an out-of-range smalldatetime value.
Gracias