Problema con las fechas
Publicado por Ivan (29 intervenciones) el 19/11/2002 18:03:01
Tengo este codigo hecho pero me da un error al pasar la fecha para una consulta SQL:
Set bd = DBEngine.OpenDatabase("C:\BasesDeDatos\Produccio.mdb")
data = InputBox("DATA DE FABRICACIÓ: ")
If data = "" Then Exit Sub
Set rec = bd.OpenRecordset(" SELECT * From entradacomandes where [Data de fabricació]=#" & data & "#")
Set Adodc1.Recordset = rec
Donde esta el posible fallo??
Set bd = DBEngine.OpenDatabase("C:\BasesDeDatos\Produccio.mdb")
data = InputBox("DATA DE FABRICACIÓ: ")
If data = "" Then Exit Sub
Set rec = bd.OpenRecordset(" SELECT * From entradacomandes where [Data de fabricació]=#" & data & "#")
Set Adodc1.Recordset = rec
Donde esta el posible fallo??
Valora esta pregunta


0