Mensaje    Asunto: ADO Responder citando

ERROR 1

TADOQuery *Atenciones2=new TADOQuery(this);
Atenciones2->Connection=ADOUrgencias;
Atenciones2->SQL->Add("select correlativo, run, nombre, motivoconsulta, descrip_diag FROM Atenciones ");
Atenciones2->SQL->Add(" where fecha_insc=Mad0 and impreso='N' order by correlativo desc");
Atenciones2->Parameters->Items[0]->Value=StatusBar1->Panels->Items[4]->Text;
Atenciones2->Open();

DICE: odbc sql ser CARACTERISTICA OPCIONAL NO VALIDA


ERROR 2
TADOStoredProc *GuardarPatologias=new TADOStoredProc(this);
GuardarPatologias->Connection=Form1->ADOUrgencias;
GuardarPatologias->ProcedureName="CargarPatologia";
GuardarPatologias->FieldByName("@run")->Value=Run->Text;
GuardarPatologias->FieldByName("@usuario")->Value=Form1->StatusBar1->Panels->Items[2]->Text;
GuardarPatologias->FieldByName("@patologia")->Value=Patologias->Text;
GuardarPatologias->ExecProc();
delete GuardarPatologias;


DICE : FIELD @run NO FUNCIONA



ME PUEDEN AYUDAR PORFA