Error 'dato' is not permitted in this context
Que hay mundo delphi, les tengo una consulta para los que utilizan SQL Server, tengo un query en el cual inserto datos a una tabla:
for i:=1 to 10 do
begin
adoquery3.SQL.Add('insert into INVTABLA2 values("'+vesp[i]+'","'+vanc[i]+'",');
adoquery3.ExecSql;
end;
y al momento de ejecutar execsql, marca el siguiente error:
Project REPINVTBL.exe raised exception class EOleException with message 'The name '6/4 NACIONAL' is not permitted in this context. Only constants, expressions, or variables allowed here. Column names are not permitted'. Process stopped.
tienen alguna idea de que es lo que pueda estar fallando?
|