![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#1
|
|||
|
|||
|
esta consuta me esta ando un error y la base de datos esta en access
este es codigo del query ************* SELECT Cod_Equipos, Equipos, Nombre_Cliente, Descripcion, Marca, Modelo, Serial, Fecha_Inicio, Dat_averia, Status, Fecha_Final FROM "Equipos.db" Equipos WHERE (Fecha_Inicio>= :fecha1) and (Fecha_Inicio <= :fecha2) ************** $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ y en el parametroes tengo estas dos variables 0- fecha1 DATATYPE (FTDATE) Y PARAMETYPE (PTLNPUT) 1- fecha2 DATATYPE (FTDATE) Y PARAMETYPE (PTLNPUT) $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ y en el From tengo este codigo lo que esta en rojo es donde se para el cursol ******************************** unit FConsuFechaEquip; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, DBCtrls, Mask, Grids, DBGrids, ExtCtrls, Buttons; type TFConsuEquiFech = class(TForm) SpeedButton1: TSpeedButton; SpeedButton2: TSpeedButton; SpeedButton3: TSpeedButton; SpeedButton4: TSpeedButton; Label2: TLabel; Label3: TLabel; Label5: TLabel; Bevel1: TBevel; Label1: TLabel; Label4: TLabel; Label6: TLabel; DBGrid1: TDBGrid; Desde: TMaskEdit; Hasta: TMaskEdit; DBMemo1: TDBMemo; DBComboBox1: TDBComboBox; DBComboBox2: TDBComboBox; procedure SpeedButton4Click(Sender: TObject); procedure DesdeExit(Sender: TObject); procedure HastaExit(Sender: TObject); procedure FormShow(Sender: TObject); procedure SpeedButton1Click(Sender: TObject); private { Private declarations } public { Public declarations } end; var FConsuEquiFech: TFConsuEquiFech; implementation uses login; {$R *.dfm} procedure TFConsuEquiFech.SpeedButton4Click(Sender: TObject); begin Close (); end; procedure TFConsuEquiFech.DesdeExit(Sender: TObject); Var A,B: TDate; begin A:= Strtodate(Desde.text); B:= Strtodate(Hasta.text); if A > B then Begin Showmessage('La Fecha inicial no Puede ser Mayor que la Final'); desde.clear; Activecontrol:= desde; End; end; procedure TFConsuEquiFech.HastaExit(Sender: TObject); Var A,B: TDate; begin A:= Strtodate(Desde.text); B:= Strtodate(Hasta.text); if B < A then Begin Showmessage('La Fecha Final no Puede ser Menor que la Inicial'); Hasta.clear; Activecontrol:= Hasta; End; end; procedure TFConsuEquiFech.FormShow(Sender: TObject); begin desde.Clear; hasta.Text := datetostr(now); Desde.Text := datetostr(now); end; procedure TFConsuEquiFech.SpeedButton1Click(Sender: TObject); begin With ConexionDB do begin QEquiposporFech.active :=false; QEquiposporFech.ParamByName('fecha1').AsDate:=StrToDate(desde.text); QEquiposporFech.ParamByName('fecha2').AsDate:=StrToDate(hasta.text); QEquiposporFech.active :=true; // QEquiposporFech.Dataset := QEquiposporFech; QEquiposporFech := Desde; QEquiposporFech := Hasta; end; end. ******************************* esto son los erroere que manda [Error] FConsuFechaEquip.pas(100): Incompatible types: 'TQuery' and 'TMaskEdit' [Error] FConsuFechaEquip.pas(101): Incompatible types: 'TQuery' and 'TMaskEdit' [Error] FConsuFechaEquip.pas(105): ';' expected but '.' found [Error] FConsuFechaEquip.pas(107): Declaration expected but end of file found [Fatal Error] Facturacion.dpr(21): Could not compile used unit 'FConsuFechaEquip.pas' |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| Consulta usando query en delphi 7 | Yensis22 | SQL | 3 | 25-08-2008 12:29:55 |
| Consulta usando query en delphi 7 | Yensis22 | SQL | 4 | 25-08-2008 07:03:05 |
| ayuda con query para Mysql fecha. | vroa74 | Conexión con bases de datos | 11 | 06-06-2008 15:56:00 |
| Consulta por fecha en MySQL y Delphi | rodrigodeoz | Conexión con bases de datos | 2 | 17-10-2007 16:47:39 |
| Problema con fecha en un Query | Lucas_diaz1810 | Conexión con bases de datos | 7 | 28-11-2006 05:45:31 |
|