Insert com SQL em ADO ACESS

Delphi

19/12/2003

Estou usando o codigo abaixo em minha query, mais esta dando o seguinte erro.

Undeclared Identifier´asString´
Undeclared Identifier´asInteger´

Gostaria da Solução se for possível, uso ADO e ACESS

ADOQueryCupom.close;
ADOQueryCupom.SQL.Clear;
ADOQueryCupom.SQL.Add(´Insert into TabValeCompras(nome,matricula,codigovale,nomedovale)values(:nome,:matricula,:codigovale,:descricaovale)´);
ADOQueryCupom.Parameters.ParamByName(´nome´).asString := dbe1cupom.text;
ADOQueryCupom.Parameters.ParamByName(´matricula´).AsInteger := dbe2cupom.text;
ADOQueryCupom.Parameters.ParamByName(´codigovale´).AsInteger := dbedit1cupomvale.text;
ADOQueryCupom.Parameters.ParamByName(´descricaovale´).AsString := dbedit1cupomvaledesc.text;
ExecSQL;


Uoquisala

Uoquisala

Curtidas 0

Respostas

Hunterxxx

Hunterxxx

19/12/2003

tenta ao inves de colocar .asstring ou asinteger...
colocar:


.value


tipo assim:
ADOQueryCupom.Parameters.ParamByName(´nome´).value := dbe1cupom.text;


posta ae se funcionou.....


GOSTEI 0
POSTAR