Error mysql
Publicado por Tomas (4 intervenciones) el 06/11/2006 10:16:56
La cuestion es que soy novato en mysql y estoy migrando las bases de datos access a mysql pero las consultas con las que manejo fecha en mysql me da error y no sabria como solucionarlo como en esta
rsdyn1.Open "select CodPedi,CodCliente,NomComercial,CodPlantas,NomPlantas,CodBandejas,NomBandejas,Unidades,Bandejas,FecSiembra,FecEntrega from Pedidos WHERE CodBandejas >= '" & Text5.Text & "' AND CodBandejas <= '" & Text6.Text & "' and CodPlantas >= '" & Text3.Text & "' AND CodPlantas <= '" & Text4.Text & "' and CodCliente >= " & Text1 & " AND CodCliente <= " & Text2 & " AND FecSiembra >= #" & Format(MaskEdBox3, "MM/dd/yy") & "# And FecSiembra <= #" & Format(MaskEdBox1, "MM/dd/yy") & "# and Estado='Sin sembrar' order by FecSiembra,CodPedi", cn
haber si alguien me puede dar una pistilla de como solucionarlo
rsdyn1.Open "select CodPedi,CodCliente,NomComercial,CodPlantas,NomPlantas,CodBandejas,NomBandejas,Unidades,Bandejas,FecSiembra,FecEntrega from Pedidos WHERE CodBandejas >= '" & Text5.Text & "' AND CodBandejas <= '" & Text6.Text & "' and CodPlantas >= '" & Text3.Text & "' AND CodPlantas <= '" & Text4.Text & "' and CodCliente >= " & Text1 & " AND CodCliente <= " & Text2 & " AND FecSiembra >= #" & Format(MaskEdBox3, "MM/dd/yy") & "# And FecSiembra <= #" & Format(MaskEdBox1, "MM/dd/yy") & "# and Estado='Sin sembrar' order by FecSiembra,CodPedi", cn
haber si alguien me puede dar una pistilla de como solucionarlo
Valora esta pregunta


0